docker-traefik
docker-traefik copied to clipboard
Dozzle 404 error
Hi there - hoping this is OK to submit as an issue. I copied your Dozzle docker-compose but I'm getting the 404 error message when I try to access my dozzle.(my domain) -- I'm not sure what I should do to troubleshoot. If I add the default network and define a port I can access it under my docker host's IP address, but I can't access through dozzle.(my domain) -- any ideas for troubleshooting?
# Dozzle - Real-time Docker Log Viewer
dozzle:
image: amir20/dozzle:latest
container_name: dozzle
restart: unless-stopped
networks:
- t2_proxy
- socket_proxy
# - default
depends_on:
- socket-proxy
security_opt:
- no-new-privileges:true
# ports:
# - "9999:8080"
environment:
DOZZLE_LEVEL: info
DOZZLE_TAILSIZE: 300
DOZZLE_FILTER: "status=running"
# DOZZLE_FILTER: "label=log_me" # limits logs displayed to containers with this label
DOCKER_HOST: tcp://socket-proxy:2375
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy instead for improved security
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.dozzle-rtr.entrypoints=https"
- "traefik.http.routers.dozzle-rtr.rule=Host(`dozzle.$DOMAINNAME0`)"
## Middlewares
- "traefik.http.routers.dozzle-rtr.middlewares=chain-oauth@file"
## HTTP Services
- "traefik.http.routers.dozzle-rtr.service=dozzle-svc"
- "traefik.http.services.dozzle-svc.loadbalancer.server.port=8080"
Got it working! I ended up copying all the labels from my working portainer section and it looks like the missing piece was the line about using TLS. Once I added that Dozzle works as intended.
# Dozzle - Real-time Docker Log Viewer
dozzle:
image: amir20/dozzle:latest
container_name: dozzle
restart: unless-stopped
networks:
- t2_proxy
- socket_proxy
# - default
depends_on:
- socket-proxy
security_opt:
- no-new-privileges:true
# ports:
# - "9999:8080"
environment:
DOZZLE_LEVEL: info
DOZZLE_TAILSIZE: 300
DOZZLE_FILTER: "status=running"
# DOZZLE_FILTER: "label=log_me" # limits logs displayed to containers with this label
DOCKER_HOST: tcp://socket-proxy:2375
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock # Use Docker Socket Proxy instead for improved security
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.dozzle-rtr.entrypoints=https"
- "traefik.http.routers.dozzle-rtr.rule=Host(`dozzle.$DOMAINNAME`)"
- "traefik.http.routers.dozzle-rtr.tls=true"
## Middlewares=
- "traefik.http.routers.dozzle-rtr.middlewares=chain-oauth@file" # Google OAuth 2.0
## HTTP Services
- "traefik.http.routers.dozzle-rtr.service=dozzle-svc"
- "traefik.http.services.dozzle-svc.loadbalancer.server.port=8080"
do you have a --entrypoints.https.http.tls.certresolver=dns-cloudflare in your traefik config?
No sir - I don't see that anywhere in the tutorial document -- https://www.smarthomebeginner.com/traefik-2-docker-tutorial/
the doc is a little out of date with the latest changes. I think if you add this, you don't need to go and add "routers.<>.tls=true" everywhere. not 100% sure though