Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

stackme/stackme-wordpress

Repository files navigation

stackme-wordpress

A customisable Wordpress docker-compose stack

Features

  • nginx (alpine)
  • php-fpm 7 (alpine)
  • MariaDB
  • MySQL

Quickstart

Fresh beginnings

First, make sure you have docker AND docker-compose installed on your host. If you have downloaded the latest version of your hot new php based CMS, unzip that bad boy into the root of the html folder.

HTTP

chmod +x ./conform.sh && ./conform.sh
docker-compose -f docker-compose.http.yml up

HTTPS

cd tls
./generate_self_signed_certificate.sh
# fill in the needed entries and wait for the magic to happen
cd ..
docker-compose -f docker-compose.https.yml up

At which point Docker should do it's thing, pulling, building and getting ready for you to take over the interwebs. Yus.

But, you probably wanna make that thing more secure. So crack into the docker compose files and change the ENVvars to something more suitable than 'secret'. Customise away to your hearts content!

Not so new beginnings

If you've already got a current CMS running, you will need to back up your static files and database.

Both MariaDB and PostgresSQL have a similar interface to import existing databases. This involves adding either a *.sql or *.sh script to the '/docker-entrypoint-initdb.d' directory. See the respective docker-compose files to see how to implement it. You may want to comment it out after the DB has been imported.

Todo

  • Create script to download Wordpress latest and put files in the right places
  • Configure Nginx confs for WP
  • HA/Service Discovery/Load Balancing

Contributions

Issues, PRs, new CMS stacks, db/php performance tweaks - bring all the things!

About

A customisable docker-compose stack for Wordpress

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published