docker-ghost-caddy will set up a Ghost blog behind a Caddy proxy on Docker Compose. Your blog will be secured by an SSL certificate from Let's Encrypt.
- Clone repository to your server
cp proxy/Caddyfile-example proxy/Caddyfile
- In
proxy/Caddyfile
changeyour.domain.here
andyou@email.com
to your blog's domain and your email (email used for generation of SSL certificate) - In
docker-compose.yml
changehttps://your.domain.here
to your https domain - Ensure your DNS record is pointed at your server. If it is not, Let's Encrypt will not be able to generate your SSL cert and Caddy will fail to start.
- Run
docker-compose build
to build the docker images
Run docker-compose up -d
to run in detached mode
Run docker-compose stop
to stop
The Ghost service mounts the ghost/content
directory where you can access all your blog data.