version: '3' networks: web: external: true services: traefik: image: traefik:2.9 restart: unless-stopped networks: - web ports: - "80:80" - "443:443" - "8080:8080" volumes: - './traefik.yml:/etc/traefik/traefik.yml' - '/var/run/docker.sock:/var/run/docker.sock:ro'