Running Wordpress in docker swarm-mode using DNS name-based discovery
This project (not production ready) will create five services in a Docker swarm cluster:
- A wordpress instance with labels for Traefik to load-balance
- One MariaDB database configured for Galera-based clustering using swarm mode DNS for discovery
- One Traefik proxying/load balancing container
- One redis instance for cacheing
- One instance of Nginx
TODO:
- Fix DNS service discovery
- Make tests pass
- Move service discovery to etcd
- Create a internal, secure, and external network
- Configure wordpress via wp-cli
docker stack deploy --compose-file docker-stack.yml wordpress
To see an example of scaling up Galera to 3 nodes, execute:
docker service scale wordpress=10
When finished, the following command shuts everything down:
docker service rm wpcluster wordpress
See the contribute file!
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
Apache 2.0 License © 2017 Thomas Vincent