Master Node
services:
dozzle:
image: amir20/dozzle:latest
environment:
- DOZZLE_REMOTE_AGENT=
# Enables simple file-based user authentication
- DOZZLE_AUTH_PROVIDER=simple
ports:
- "8181:8080" # (Or 8080 if you resolved the previous port conflict)
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
# Mounts the local directory containing users.yml to Dozzle's internal /data path
- /opt/dozzle/data:/data
1. Create the persistent data directory in master node
mkdir -p /opt/dozzle/data
2. Generate securely hashed credentials
docker run --rm amir20/dozzle generate admin --password "YourSecurePassword" > /opt/dozzle/data/users.yml
Worker Node
services:
dozzle-agent:
image: amir20/dozzle:latest
command: agent
volumes:
# Grants the agent read-only access to the local node's container logs
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
# Exposes the agent on port 7007
- "7007:7007"
Master Node
services:
dozzle:
image: amir20/dozzle:latest
environment:
- DOZZLE_REMOTE_AGENT=
# Enables simple file-based user authentication
- DOZZLE_AUTH_PROVIDER=simple
ports:
- "8181:8080" # (Or 8080 if you resolved the previous port conflict)
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
# Mounts the local directory containing users.yml to Dozzle's internal /data path
- /opt/dozzle/data:/data
1. Create the persistent data directory in master node
mkdir -p /opt/dozzle/data
2. Generate securely hashed credentials
docker run --rm amir20/dozzle generate admin --password "YourSecurePassword" > /opt/dozzle/data/users.yml
Worker Node
services:
dozzle-agent:
image: amir20/dozzle:latest
command: agent
volumes:
# Grants the agent read-only access to the local node's container logs
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
# Exposes the agent on port 7007
- "7007:7007"