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 }}"]