Ghost Platform with Docker, SSL and Cloud Storage
322
The goal was to set up Ghost on a Docker host machine with a Cloud asset storage (AWS or DigitalOcean) and enable HTTPS using Let’s Encrypt for certificate generation and auto-renewal.
This recipe can either be used via docker-compose or docker stack deploy (on Swarm enabled Docker hosts), i created a GitHub Repository with docker-compose files and some useful scripts.
It combines three Docker images:
In addition you can use a custom driver for your Ghost content volume, i used local-persist, its just a normal docker volume but you can specify it's path on the disk and the data won't get deleted if you destroy the volume. To install local-persist driver on your system just run this command and uncomment the volumes driver options in your compose file:
curl -fsSL https://raw.githubusercontent.com/CWSpear/local-persist/master/scripts/install.sh | sudo bash
In conclusion, spin up your configuration with:
docker-compose up --build
on you development machine, or deploy a stack on a Docker Swarm by running:
docker stack deploy -c docker-compose.production.yml MYSTACKNAME
Additional informations and resources you may want to check in case of problems:
Enjoy your new Ghost Blog :)
Content type
Image
Digest
Size
193.5 MB
Last updated
almost 8 years ago
docker pull macchie/ghost-scs