https://github.com/thomasvincent/docker-wordpress-swarm-setup
Configures WordPress for Docker Swarm with DNS-based discovery.
https://github.com/thomasvincent/docker-wordpress-swarm-setup
docker galera redis swarm swarm-cluster traefik wordpress
Last synced: about 2 months ago
JSON representation
Configures WordPress for Docker Swarm with DNS-based discovery.
- Host: GitHub
- URL: https://github.com/thomasvincent/docker-wordpress-swarm-setup
- Owner: thomasvincent
- License: apache-2.0
- Created: 2017-07-26T00:44:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-21T00:27:47.000Z (12 months ago)
- Last Synced: 2024-06-22T17:19:00.822Z (12 months ago)
- Topics: docker, galera, redis, swarm, swarm-cluster, traefik, wordpress
- Size: 39.1 KB
- Stars: 2
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# WordPress Swarm Deployment
[](https://github.com/RichardLitt/standard-readme) [](https://travis-ci.org/thomasvincent/wordpress-swarm)
A Docker Swarm cluster deployment for running WordPress using DNS name-based discovery.
## Features
- Five services running in a Docker Swarm cluster:
- A WordPress instance with labels for Traefik to load-balance
- A MariaDB database configured for Galera-based clustering using Swarm mode DNS for discovery
- A Traefik proxying and load balancing container
- A Redis instance for caching
- An Nginx instance## Requirements
- Docker Engine 20.10.0 or later
- Docker Compose 1.29.0 or later
- Docker Swarm mode enabled## Deployment
1. Clone the repository:
```bash
git clone https://github.com/yourusername/wordpress-swarm.git
```2. `cd wordpress-swarm`
3. Deploy the WordPress stack:bash
`docker stack deploy -c docker-compose.yml wordpress`
5. Access the WordPress site: Open your browser and visit http://wordpress.example.com. Replace wordpress.example.com with your actual domain name.## Scaling
To scale the WordPress service to 10 replicas, run the following command:`docker service scale wordpress_wordpress=10`
## Monitoring
Access the Traefik dashboard by visiting http://traefik.example.com. Replace traefik.example.com with your actual domain name.## Cleanup
To shut down and remove the WordPress stack, run the following command:`docker stack rm wordpress`
## Contributing
Contributions are welcome! Please see the ~[contribute.md](contribute.md)~ file for more information.## Maintainers
* @thomasvincent(https://github.com/thomasvincent)##License
This project is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for more information.