Skip to content

Instantly share code, notes, and snippets.

@arhea
Created December 22, 2016 22:59
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 arhea/c572bfd1ea604c076856024d7658be18 to your computer and use it in GitHub Desktop.
Save arhea/c572bfd1ea604c076856024d7658be18 to your computer and use it in GitHub Desktop.
Interlock & NGINX docker-compose.yml
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