Skip to content

Instantly share code, notes, and snippets.

@mamigot
Created October 22, 2017 16:20
Show Gist options
  • Save mamigot/1abdefc684f97d3476f177d85248ff36 to your computer and use it in GitHub Desktop.
Save mamigot/1abdefc684f97d3476f177d85248ff36 to your computer and use it in GitHub Desktop.
Ghost + Nginx + Let's Encrypt + Docker Compose
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /etc/nginx/certs
letsencrypt-nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes_from:
- nginx-proxy
web:
restart: always
image: ghost
environment:
- VIRTUAL_HOST=miguelamigot.com
- LETSENCRYPT_HOST=miguelamigot.com
- LETSENCRYPT_EMAIL=...
volumes:
- /root/ghost:/var/lib/ghost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment