A docker compose starter kit for the Ghost blogging platform features:
- SSL/TLS (HTTPS) using certbot with automated renewal
- nginx as fast and reliable webserver
- mariadb as database.
Additional features:
- Support for Disqus comments
You need a computer or server with
- Docker installed
- Internet access
- Ingress traffic on ports
80and443
The current setup supports a domain name and an alternative domain name with www. prefix out of the box. But you can customize all settings.
- Copy
.env.templateto.env - Change
.envfile and add your values. Also add, remove environment variables if needed. - Optional configurations:
- Edit the
docker-compose.ymlfile: Change, add and remove environment variables if needed. - Edit the
certbot/files/docker-entrypoint.shfile to use--stagingand/or--debugfor the initial certbot certificate creation. - If you migrate from another ghost blog: Export the content in the old admin panel. Copy existing blog data into
data/ghost/and import content in the new admin panel.
- Edit the
- Check the configuration:
docker-compose config - Build the docker images:
docker-compose build --no-cache - Run the docker compse setup in daemon mode in the backgroud:
docker-compose up -d
Check logs: docker-compose logs -f