servers/services/traefik/stack.yml
2023-11-05 17:02:44 +01:00

27 lines
626 B
YAML

version: "{{ compose_version }}"
services:
ingress:
image: traefik:v2.10
env_file:
- ./ovh.env
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
volumes:
- ./config/acme:/etc/traefik/acme
- ./config/traefik.yaml:/etc/traefik/traefik.yaml:ro
- ./config/dynamic:/etc/traefik/dynamic:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
deploy:
placement:
constraints:
- node.role == manager
networks: ["{{ ingress_network }}"]