Docker - Dozzle - Realtime Logs
Page content
Dozzle is a real-time log viewer for docker containers
URL
Pull Image and start Container
docker pull amir20/dozzle:latest
docker run --name dozzle -d --volume=/var/run/docker.sock:/var/run/docker.sock -p 8888:8080 amir20/dozzle:latest
Docker Compose
version: "3"
services:
dozzle:
container_name: dozzle
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8888:8080
You’re now exposing all your logfiles to the Internet on Port 8888. Apply some FW Rules on the Host, on the Cloud Provider or wherever it fit’s for you ….
Enable Auth
you can enable Authentication with the following line, but as you transport it in cleartext, it does not make much sense …
docker run --name dozzle -d --volume=/var/run/docker.sock:/var/run/docker.sock -p 8888:8080 amir20/dozzle:latest --no-analytics --username admin --password password
Auth & HTTPS
dozzle:
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.enable=true"
- "traefik.http.routers.dozzle.rule=Host(`dozzle.your.domain.de`)"
- "traefik.http.routers.dozzle.tls=true"
- "traefik.http.routers.dozzle.tls.certresolver=letsencrypt"
- "traefik.http.routers.dozzle.middlewares=test-auth"
- "traefik.http.middlewares.test-auth.basicauth.users=testuser:$$2y$$05$$vht/xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
Any Comments ?
sha256: 53bebd894b04f2391693ad755bc6dbb09871d35799296f6291280b3358d03d3f