This repository contains the Docker Compose configuration for running Dozzle, a real-time log viewer for Docker containers.
Dozzle is a simple, lightweight application that helps you monitor your Docker container logs in real-time through a web interface. This setup includes configuration for connecting to a remote Docker agent.
- Docker Engine installed
- Docker Compose V2+ installed
- Access to Docker socket
- Network access to remote Docker agent (if using remote configuration)
The setup uses Docker Compose with version 3 of the compose specification. Here's the configuration breakdown:
version: "3"
networks:
unklab:
external: true
services:
dozzle:
image: amir20/dozzle:latest
container_name: dozzle
restart: unless-stopped
environment:
- DOZZLE_REMOTE_AGENT=10.104.0.3:7007
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- unklab
-
Networks:
- Uses an external network named
unklab
- External networks must be created before running this compose file
- Uses an external network named
-
Service Configuration:
- Container name:
dozzle
- Image:
amir20/dozzle:latest
- Restart policy:
unless-stopped
- Container name:
-
Environment Variables:
DOZZLE_REMOTE_AGENT
: Set to10.104.0.3:7007
for remote agent connection
-
Volumes:
- Mounts Docker socket for container log access
- Mount path:
/var/run/docker.sock:/var/run/docker.sock
-
Clone this repository:
git clone [repository-url] cd [repository-name]
-
Create the required external network (if not already existing):
docker network create unklab
-
Start the container:
docker compose up -d
Once the container is running, you can access the Dozzle web interface through your browser. The default port is typically 8080, but you may need to check your specific configuration.
- Open your web browser
- Navigate to the Dozzle interface
- View real-time logs for all your Docker containers
To update to the latest version of Dozzle:
docker compose pull
docker compose up -d
To stop Dozzle:
docker compose down
Common issues and solutions:
-
Docker Socket Access Issues:
- Ensure proper permissions on
/var/run/docker.sock
- Check if the user has proper group membership
- Ensure proper permissions on
-
Network Connectivity:
- Verify the remote agent address is correct
- Check if the port 7007 is accessible
- Ensure the
unklab
network exists and is properly configured
-
Container Won't Start:
- Check logs using
docker compose logs dozzle
- Verify all required networks are available
- Ensure Docker socket is accessible
- Check logs using
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
For issues and feature requests, please file an issue in the GitHub repository.