Created
November 19, 2017 13:53
-
-
Save xuyuji9000/9942573ab71a0d57c70d718bfb7b51a7 to your computer and use it in GitHub Desktop.
File name should be docker-compose.yml.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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