Resources attached to the Road To DevOps tutorial https://blog.noobtoroot.xyz/road-to-devops/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
549 B

version: "3"
services:
traefik:
image: traefik:tetedemoine
ports:
- 80:80
- 8080:8080
networks:
- traefik_net
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
command: ["--docker", "--docker.swarmmode", "--docker.domain=traefik", "--docker.watch", "--web"]
deploy:
placement:
constraints: [node.role == manager]
networks:
traefik_net:
driver: overlay
# si le réseau traefik_net existe déjà on peut l'utiliser comme ceci :
#networks:
# traefik_net:
# external: true