Just a simple docker-compose with Traefik, Ghost (CMS) and MariaDB for SQL server.
A fast and prod oriented stack to have your own and easy hackable CMS with Ghost. Was used before on my personnal website.
- linux host (tested successfully on Ubuntu 20.04 && 22.04, Debian 11 & 12)
- 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-ghost-sql/
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
This is a production-ready stack for Ghost CMS. It's using Traefik and a docker proxy container. Traefik is used to be the reverse-proxy, in front of Ghost. Usage of docker secrets, bind mounts and docker volumes...
A SQL server is used (MySQL 8), but with a different flavour. To be robust and more secure, I'm using RapidFort container, which is a base of MySQL 8 from Bitnami (VMware). There's also an SQL exporter container for prometheus.
Ghost version is stock and works perfectly.
Varnish is used to cache static files nor the preview and admin pages. Be aware you can have some glitchs when updating your posts. Purge your navigator cache before.
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.
- Varnish (configuration file) : inspiration from "https://github.com/studplus/wordpress_docker/blob/main/custom-varnish/wordpress.vcl"
- Docker Compose (anchor) : inspiration from "https://infos.zogg.fr/traefik-crowdsec"