I am running traefik in a standalone docker environment on top of Ubuntu 20.04. This is the first stage of a basic test and I cannot even get the dashboard for traefik to load. I see too many redirects in the web console and when I curl the url I get "Moved Permanently"
Here is my config:
docker-compose.yml
version: "3"
services:
traefik:
image: traefik:v2.2
ports:
- 80:80
- 443:443
restart: always
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- $PWD/traefik.toml:/traefik.toml
- $PWD/traefik_dynamic.toml:/traefik_dynamic.toml
- $PWD/acme.json:/acme.json
networks:
web:
external: true
traefik.toml
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
scheme = "https"
[entryPoints.websecure]
address = ":443"
[log]
level = "DEBUG"
[api]
dashboard = true
[certificatesResolvers.lets-encrypt.acme]
email = "mail@mymail.com"
storage = "acme.json"
[certificatesResolvers.lets-encrypt.acme.httpChallenge]
entryPoint = "web"
[providers.docker]
watch = true
network = "web"
[providers.file]
filename = "traefik_dynamic.toml"
traefik_dynamic.toml
[http.middlewares.simpleAuth.basicAuth]
users = [
"admin:$apr1$CyRMtgRl$3vrRo.Fu4WYeHY5KCodh1/"
]
[http.routers.api]
rule = "Host(`monitor.domain.com`)"
entrypoints = ["websecure"]
middlewares = ["simpleAuth"]
service = "api@internal"
[http.routers.api.tls]
certResolver = "lets-encrypt"
I see nothing in the debug logs that can help. Can anyone help with this because I am lost?