Last active
June 10, 2017 18:48
-
-
Save benileo/2afe2eafc5c6baa687ee22b7d90da921 to your computer and use it in GitHub Desktop.
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: '3.1' | |
networks: | |
snet: | |
driver: overlay | |
volumes: | |
certs: | |
html: | |
vhosts: | |
services: | |
nginx-proxy: | |
deploy: | |
replicas: 1 | |
placement: | |
constraints: | |
- node.hostname == blackberry | |
# image: jwilder/nginx-proxy | |
image: 123456789.dkr.ecr.us-west-2.amazonaws.com/nginx-proxy:latest | |
labels: | |
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true" | |
networks: | |
- snet | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
# needs access to the remote docker api | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
- certs:/etc/nginx/certs:ro | |
- vhosts:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
nginx-proxy-letsencrypt-companion: | |
deploy: | |
replicas: 1 | |
placement: | |
constraints: | |
- node.hostname == blackberry | |
image: jrcs/letsencrypt-nginx-proxy-companion:latest | |
networks: | |
- snet | |
volumes: | |
# needs access to the remote docker api | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
- certs:/etc/nginx/certs:rw | |
- vhosts:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment