docker logs -f works fine when you have one or two containers. Once your homelab grows to a reverse proxy, media stack, monitoring tools, databases, and a few experiments, finding the right log line becomes slow and repetitive. You end up opening multiple terminals, scrolling past noisy startup messages, and losing context every time a container restarts.

Dozzle is a lightweight, web-based log viewer for Docker that solves this exact problem. It reads logs directly from the Docker API, streams them live in your browser, and adds useful features like search, multi-container views, JSON highlighting, CPU and memory stats, and optional container actions. Because it is a single container with no external database, it is one of the easiest observability upgrades you can add to a self-hosted stack.

This guide shows how to self-host Dozzle with Docker Compose, secure it for a homelab, and fit it into an existing monitoring workflow.

Why use Dozzle in a homelab?

Dozzle is not trying to replace a full logging platform. It focuses on fast, day-to-day visibility into what your containers are doing right now.

Key reasons it fits homelabs well:

  • Real-time log streaming: See new log lines as they happen without refreshing or re-running CLI commands.
  • Simple deployment: One container, one port, and a Docker socket mount are enough to get started.
  • Low overhead: The official project describes Dozzle as lightweight, with a Go backend and Vue 3 frontend.
  • Useful log handling: Automatic JSON detection, color coding, multi-line stack trace grouping, filters, and an embedded SQL engine for ad-hoc queries.
  • Multi-host options: You can connect remote agents to monitor other Docker hosts from one UI.
  • Optional controls: Shell access, container actions, alerts, and authentication can be enabled when you need them, but they stay off by default.

If you already run Portainer for container management, Dozzle complements it nicely: Portainer is great for lifecycle tasks, while Dozzle is optimized for reading logs quickly.

Prerequisites

Before deploying Dozzle, make sure you have:

  • A Linux server, NAS, or VM with Docker installed
  • Docker Compose (the docker compose plugin)
  • Docker Engine 19.03 or newer (API version 1.40+), as required by Dozzle
  • Access to /var/run/docker.sock
  • A port available for the web UI (8080 in the examples below)

If you plan to expose Dozzle outside your private network, plan authentication and network controls before publishing it. Mounting the Docker socket gives the container root-equivalent access to the host, so treat Dozzle as an admin tool.

Quick start with Docker Compose

Create a directory for Dozzle:

mkdir -p ~/dozzle
cd ~/dozzle

Create docker-compose.yml:

services:
  dozzle:
    image: amir20/dozzle:latest
    container_name: dozzle
    restart: unless-stopped
    ports:
      - "8080:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - dozzle_data:/data
    environment:
      # Optional: label this instance in the UI and multi-host menu
      # - DOZZLE_HOSTNAME=my-homelab
      #
      # Optional: enable container actions (stop, start, restart)
      # - DOZZLE_ENABLE_ACTIONS=true
      #
      # Optional: allow container shell access from the browser
      # - DOZZLE_ENABLE_SHELL=true
      #
      # Optional: enable authentication (see Dozzle docs for provider setup)
      # - DOZZLE_AUTH_PROVIDER=simple

volumes:
  dozzle_data:

Start the service:

docker compose up -d

Open http://YOUR_SERVER_IP:8080 in your browser. Dozzle should immediately list running containers and begin streaming logs.

The /data volume stores Dozzle settings so they persist across container recreation and upgrades. The Docker socket mount is read-only in this example, which is a reasonable default for log viewing. If you later enable actions or shell features, review whether your setup still needs read-only access and understand the added risk.

What you get in the UI

Once Dozzle is running, the interface is intentionally focused. You can select a container, follow logs live, pause the stream, and search within output. For structured application logs, JSON formatting makes fields easier to scan than raw terminal output.

A few features are especially useful in practice:

  • Container switching: Jump between services without leaving the browser tab.
  • Multi-container views: Helpful when debugging interactions between an app and its database or reverse proxy.
  • Stats: Live CPU, memory, and network metrics provide quick context when a log spike coincides with resource pressure.
  • Filters: You can limit what Dozzle shows, which is useful on busy hosts.
  • SQL engine: Dozzle includes an embedded SQL engine for ad-hoc log queries, handy when simple text search is not enough.

This makes Dozzle a strong companion to uptime and health checks from tools like Uptime Kuma or lightweight host metrics from Beszel. Uptime tools tell you that something is failing; Dozzle helps you see why.

Optional features worth knowing

Dozzle keeps advanced capabilities behind configuration flags, which is a good design for self-hosters. Enable only what you actually need.

Container actions

If you want start, stop, and restart controls in the UI, set:

environment:
  - DOZZLE_ENABLE_ACTIONS=true

This is convenient, but it increases the blast radius of anyone who can access Dozzle. Pair it with authentication and network restrictions.

Browser shell access

To attach or exec into containers from the browser, enable:

environment:
  - DOZZLE_ENABLE_SHELL=true

Shell access can save time during debugging, but it should be treated like granting administrative console access.

Authentication

Dozzle supports authentication providers. A common starting point is the simple provider:

environment:
  - DOZZLE_AUTH_PROVIDER=simple

Check the official authentication guide for the full setup flow, including user configuration and security considerations. If you expose Dozzle through a reverse proxy, you can also place it behind your existing SSO or forward-auth layer.

Host labels and remote agents

On a single host, labeling the instance helps keep the UI clear:

environment:
  - DOZZLE_HOSTNAME=homelab-node-1

If you run multiple Docker hosts, Dozzle can monitor them from one interface by connecting to remote agents:

environment:
  - DOZZLE_REMOTE_AGENT=192.168.1.10:7007,192.168.1.11:7007

See the official agent guide for agent deployment details and networking requirements.

Security and networking tips

Dozzle is easy to run, but it should be deployed thoughtfully:

  1. Keep it private by default. Bind it to a LAN/VPN-reachable interface or put it behind a trusted reverse proxy.
  2. Use a reverse proxy for HTTPS. If you need browser access from multiple devices, run it behind Caddy or another proxy with TLS.
  3. Enable authentication before remote exposure. Never expose an unauthenticated Docker socket-backed UI to the public internet.
  4. Avoid unnecessary features. Leave actions and shell access disabled unless you have a clear use case.
  5. Use least privilege where possible. Keep the socket mount read-only for log-only setups and limit network reachability with firewall rules.
  6. Consider image source and versioning. The default image is amir20/dozzle:latest. If Docker Hub is blocked, Dozzle also publishes ghcr.io/amir20/dozzle:latest. For predictable upgrades, you can pin a specific version tag after testing.

Beyond standalone Docker

Dozzle is not limited to a single Docker host. The official docs cover additional deployment modes:

  • Docker Swarm: Run Dozzle in Swarm mode with DOZZLE_MODE=swarm and deploy it globally so it can observe services across nodes.
  • Kubernetes: Deploy Dozzle with DOZZLE_MODE=k8s and configure RBAC for pod log access.

These modes are useful when your environment grows beyond a single Compose host, but the core value stays the same: a fast, browser-based way to inspect logs without building a heavy logging pipeline.

Updating Dozzle

Upgrading is straightforward with Compose:

cd ~/dozzle
docker compose pull
docker compose up -d
docker image prune -f

Because settings are stored in the dozzle_data volume, they persist across updates. After upgrading, open the UI and confirm containers, filters, and any enabled features still behave as expected.

Troubleshooting

If Dozzle starts but does not show what you expect, check these common issues:

  • No containers listed: Verify the Docker socket path is correct and the container can access it.
  • Permission or connection errors: Confirm the host runs Docker Engine 19.03+ (API 1.40+).
  • UI unreachable: Check docker compose ps, host firewall rules, and port mappings.
  • Missing settings after restart: Ensure the /data volume is mounted.
  • Remote hosts not appearing: Recheck agent addresses, ports, and network connectivity.

You can also inspect Dozzle’s own logs:

docker logs -f dozzle

A practical logging stack for small self-hosted setups

For many homelabs, a full ELK-style stack is overkill. A simpler, effective combination is:

  • Dozzle for real-time container logs and quick debugging
  • Uptime Kuma for availability alerts
  • Beszel or similar metrics for host resource visibility
  • Homepage or another dashboard for a single entry point to your services

If you want a central landing page for your tools, Dozzle links neatly from a Homepage dashboard.

Final thoughts

Dozzle is one of those self-hosted tools that delivers value immediately. Installation takes minutes, the UI stays out of your way, and it removes much of the friction of tailing logs across many containers. Keep it on your private network, enable advanced features only when needed, and it becomes a dependable daily driver for homelab troubleshooting.

For the latest configuration options and deployment modes, refer to the official Getting Started guide and What is Dozzle? documentation.