Docker stack to have a WordPress site behind a Traefik reverse-proxy with Nginx, a SQL database and Redis objects cache.
This is a prod ready stack, but it needs some customization to be powerful.
- linux host (tested successfully on Ubuntu 20.04 && 22.04, Debian 10 & 11)
- docker >= 23.x
- docker compose (plugin) >= 2.17.x
Clone this repo where you want with this line :
git clone https://github.com/Mettmett/docker-compose.git:traefik-nginx-wordpress-sql-redis
You need to edit the file .env
at the source folder to modify the values of some vars.
Important !! You have to "sudo chmod 600" the file "acme.json", otherwise you won't be able to pull Let's Encrypt certificates.
After that when you're all set, press the red button to initiate 🔥 !
docker compose pull && docker compose up -d && docker compose logs -f
Made by Julien HOMMET 🇫🇷 for my personnal website
- Twitter: @mettmettz
- GitHub: Mettmett
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.