version: "3" services: traefik: container_name: traefik image: traefik:latest networks: - web - traefik ports: - 80:80 - 443:443 volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - ./traefik.toml:/traefik.toml - ./traefik_dynamic.toml:/traefik_dynamic.toml - ./acme.json:/acme.json - ./.htpasswd:/.htpasswd networks: web: external: true traefik: