version: "3" services: traefik: image: "traefik" container_name: "traefik" restart: "always" command: - "--api.insecure=true" - "--entrypoints.web.address=:80" - "--providers.docker=true" - "--providers.docker.exposedbydefault=false" ports: - "80:80" labels: - "traefik.enable=true" # Dashboard - "traefik.http.services.loadbalancer.server.port=8080" - "traefik.http.routers.traefik.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.traefik.entrypoints=web" volumes: - "/var/run/docker.sock:/var/run/docker.sock" networks: - "traefik" networks: traefik: name: "${NETWORK}"