I followed the Full docker example with Traefik 2 and I’m getting a 504 timeout.
The Traefik status looks good for HTTP Routers and Services, certs assigned, no errors in the log (except the 504). The Vikunja logs look good for api-1, db-1, and frontend-1 (although there are no further log entries after the initial up). In the Vikunja docker-compose.yml, I’m using endpoints “websecure” and certResolver “letsencrypt”.
Using Traefik 2.10.7, docker compose 2.23.3. Traefik docker-compose.yml:
services:
traefik:
image: traefik:latest
command:
- “–log.level=WARN”
- “–accesslog=true”
- “–api.dashboard=true”
- “–api.insecure=true”
- “–ping=true”
- “–ping.entrypoint=ping”
- “–entryPoints.ping.address=:8082”
- “–entryPoints.web.address=:80”
- “–entryPoints.websecure.address=:443”
- “–providers.docker=true”
- “–providers.docker.endpoint=unix:///var/run/docker.sock”
- “–providers.docker.exposedByDefault=false”
- “–certificatesresolvers.letsencrypt.acme.tlschallenge=true”
- “--certificatesresolvers.letsencrypt.acme.email=my@email.com”
- “–certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/acme/acme.json”
- “–global.checkNewVersion=true”
- “–global.sendAnonymousUsage=false”
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /data/traefik/ssl:/etc/traefik/acme
env_file:
- ./.env
ports:
- “80:80”
- “443:443”
healthcheck:
test: [“CMD”, “wget”, “http://localhost:8082/ping","--spider”]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
labels:
- “traefik.enable=true”
- “traefik.http.routers.dashboard.rule=Host(traefik.mydomain.com
)”
- “traefik.http.routers.dashboard.service=api@internal”
- “traefik.http.routers.dashboard.entrypoints=websecure”
- “traefik.http.services.dashboard.loadbalancer.server.port=8080”
- “traefik.http.routers.dashboard.tls=true”
- “traefik.http.routers.dashboard.tls.certresolver=letsencrypt”
- “traefik.http.services.dashboard.loadbalancer.passhostheader=true”
- “traefik.http.routers.dashboard.middlewares=authtraefik”
- “traefik.http.middlewares.authtraefik.basicauth.users=${BASICAUTH_USER}:${BASICAUTH_PASSWORD}”
- “traefik.http.routers.http-catchall.rule=HostRegexp({host:.+}
)”
- “traefik.http.routers.http-catchall.entrypoints=web”
- “traefik.http.routers.http-catchall.middlewares=redirect-to-https”
- “traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https”
restart: unless-stopped