Skip to content

Instantly share code, notes, and snippets.

@xuyuji9000
Created November 19, 2017 13:53
Show Gist options
  • Save xuyuji9000/9942573ab71a0d57c70d718bfb7b51a7 to your computer and use it in GitHub Desktop.
Save xuyuji9000/9942573ab71a0d57c70d718bfb7b51a7 to your computer and use it in GitHub Desktop.
File name should be docker-compose.yml.
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- "/etc/nginx/vhost.d"
- "/usr/share/nginx/html"
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "/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:
image: nginx:1.13.1-alpine
environment:
VIRTUAL_HOST: api.running-blue.com
LETSENCRYPT_HOST: api.running-blue.com
LETSENCRYPT_EMAIL: [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment