Skip to content

Instantly share code, notes, and snippets.

@Robert-Cunningham
Created January 21, 2022 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Robert-Cunningham/a9cb20451566862a305949bae3d4b930 to your computer and use it in GitHub Desktop.
Save Robert-Cunningham/a9cb20451566862a305949bae3d4b930 to your computer and use it in GitHub Desktop.
Code for robertcunningham.xyz/docker-compose/
version: '2'
services:
ghost:
image: ghost
environment:
VIRTUAL_HOST: robertcunningham.xyz
VIRTUAL_PORT: 2368
LETSENCRYPT_HOST: robertcunningham.xyz
LETSENCRYPT_EMAIL: your_email@gmail.com
url: https://robertcunningham.xyz
expose:
- 2368
volumes:
- ./ghost:/var/lib/ghost/content
nginx-proxy:
image: nginxproxy/nginx-proxy
restart: always
ports:
- '80:80'
- '443:443'
volumes:
- /etc/nginx/certs:/etc/nginx/certs
- /etc/nginx/vhost.d:/etc/nginx/vhost.d
- /usr/share/nginx/html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
labels:
- 'com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy'
nginx-proxy-ssl:
image: nginxproxy/acme-companion
volumes:
- /etc/acme.sh:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes_from:
- nginx-proxy
environment:
#ACME_CA_URI: 'https://acme-staging-v02.api.letsencrypt.org/directory'
NGINX_PROXY_CONTAINER: 'nginx-proxy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment