This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/traefik/docker-stack.yml.j2

37 lines
887 B
Text
Raw Normal View History

2023-05-02 10:22:16 +00:00
# vi: ft=yaml
version: "3.7"
networks:
traefik:
external: true
services:
traefik:
image: traefik:3.0
networks:
- traefik
ports:
- 80:80
- 8080:8080
deploy:
placement:
constraints: [node.labels.traefik == true]
labels:
- traefik.enable=true
- traefik.http.routers.dashboard.rule=Host(`maestro.dmz`)
- traefik.http.routers.dashboard.service=api@internal
- traefik.http.services.dummy-svc.loadbalancer.server.port=8080
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
command:
- --providers.docker
- --providers.docker.swarmmode
- --providers.docker.watch
- --api
- --api.insecure=true
- --api.dashboard=true
- --entrypoints.web.address=:80
- --providers.docker.exposedbydefault=false