Hi. I'm using docker compose an treafik. I want to protect my treafik dashboard with htpp.
I config traefik with traefik.toml
defaultEntryPoints = ["http"]
logLevel = "INFO"
[docker]
endPoint = "unix:///var/run/docker.sock"
exposedByDefaulut = false
[api]
insecure = true
dashboard = true
[http.middlewares]
[http.middlewares.test-auth.basicAuth]
users = [
"admin:$apr1$fzv3hs75$KnTNUUMmbc7VSpDD.t.WK0",
]
Here is my docker-compose file
...
traefik:
image: traefik:latest
container_name: traefik
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- type: bind
source: ./traefik.toml
target: /etc/traefik/traefik.toml
read_only: true
So i open a web browser an enter the following URL : http://localhost:8080/dashboard
I expected so see a login page - but nothing happend. I get access to the dashboard without authetification.
You anbybody tell me where is the error in the configuration