Created
December 22, 2016 22:59
-
-
Save arhea/c572bfd1ea604c076856024d7658be18 to your computer and use it in GitHub Desktop.
Interlock & NGINX 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
interlock: | |
image: dtr.example.com/proxy/interlock:latest | |
restart: always | |
tty: true | |
environment: | |
- 'affinity:container!=*interlock*' | |
- 'SWARM_HOST=tcp://ucp.examplpe.com:2376' | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- 'ucp-node-certs:/certs' | |
ports: | |
- 8080 | |
nginx: | |
image: dtr.example.com/proxy/nginx:latest | |
entrypoint: nginx | |
command: -g "daemon off;" -c /etc/nginx/nginx.conf | |
restart: always | |
labels: | |
- 'interlock.ext.name=nginx' | |
environment: | |
- 'affinity:container!=*nginx*' | |
ports: | |
- 80:80 | |
- 443:443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment