Hi.
I've made a working docker-compose.yml with a command section for traefik:
version: "3"
services:
traefik:
image: "traefik:2.10"
container_name: "traefik"
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
This works and I can connect to the dashboard.
Then I split the static configuration into the traefik.yaml:
api:
dashboard: true
insecure: true
entryPoints:
web:
address: ":80"
providers:
docker:
exposedByDefault: false
endpoint: "unix:///var/run/docker.sock"
and removed it from the compose file:
version: "3"
services:
traefik:
image: "traefik:2.10"
container_name: "traefik"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
And now, after rebuilding the container I can't reach the traefik dashboard. I have reduced this example to the minimum to find my mistake. With services those would result in a 404 after using the traefik.yml.
Why is the traefik.yml not working?
How could I find out?
Thanks, Ejoo