Last active
October 30, 2020 08:34
-
-
Save adilsonbna/91a41e7aa517e5847d3bf6fb25c80368 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.3" | |
services: | |
traefik: | |
image: traefik | |
command: --web --docker --docker.swarmmode --docker.watch --docker.domain=cirrus.io --logLevel=DEBUG | |
ports: | |
- "80:80" | |
- "8080:8080" | |
- "443:443" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /dev/null:/traefik.toml | |
labels: | |
- "traefik.enable=false" | |
networks: | |
- cirrus-net | |
deploy: | |
replicas: 3 | |
placement: | |
constraints: [node.role==manager] | |
restart_policy: | |
condition: on-failure | |
web: | |
image: emilevauge/whoami | |
networks: | |
- cirrus-net | |
deploy: | |
replicas: 3 | |
labels: | |
- "traefik.port=80" | |
- "traefik.docker.network=cirrus-net" | |
- "traefik.frontend.rule=Host:whoami.cirrus.io" | |
- "traefik.backend.loadbalancer.sticky=true" | |
visualizer: | |
image: dockersamples/visualizer:stable | |
ports: | |
- "8081:8080" | |
stop_grace_period: 1m30s | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
deploy: | |
placement: | |
constraints: [node.role==manager] | |
networks: | |
cirrus-net: | |
driver: overlay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment