Skip to content

Instantly share code, notes, and snippets.

@mjdavies
Created June 26, 2017 14:57
Show Gist options
  • Save mjdavies/22f894a35e7ab341652b3fefc106a18b to your computer and use it in GitHub Desktop.
Save mjdavies/22f894a35e7ab341652b3fefc106a18b to your computer and use it in GitHub Desktop.
version: "3.1"
networks:
webgateway:
driver: overlay
services:
traefik-st:
image: ourdockerrepo/uswtraefik:latest
command:
- --docker
- --docker.swarmmode
- --docker.domain=traefik
- --docker.watch
- --web
- --logLevel=DEBUG
networks:
- webgateway
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
replicas: 1
resources:
limits:
cpus: "0.1"
memory: 30M
update_config:
# update one container at a time, 10 seconds in between
parallelism: 1
delay: 10s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment