Skip to content

Latest commit

 

History

History

traefik-ghost-sql

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

docker-compose Traefik & Ghost

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.

🏭 Requirements

  • linux host (tested successfully on Ubuntu 20.04 && 22.04, Debian 11 & 12)
  • docker >= 23.x
  • docker compose (plugin) >= 2.17.x

🚀 How to use

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

Informations about this stack

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.

⭐ Author

Made by Julien HOMMET 🇫🇷 for my personnal website

🔧 Support & Contribution

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

💰 Licence

CC BY-NC-SA

⚓ Misc