# dozzle stack tunables. Copy to `.env` on each server before deploying.
#
#   cp .env.example .env
#   # edit for this host
#   docker compose up -d
#
# Same compose.yaml on both servers — COMPOSE_PROFILES picks the role.

# Image version — pin for reproducibility (`latest` for edge)
DOZZLE_VERSION=latest

# ------------------------------------------------------------------------
# On ana-docker (hub):
#   COMPOSE_PROFILES=hub
#   DOZZLE_HOSTNAME=ana-docker
#   DOZZLE_REMOTE_AGENT=10.250.50.54:7007
#
# On ana-ml2 (agent):
#   COMPOSE_PROFILES=agent
#   DOZZLE_HOSTNAME=ana-ml2
# ------------------------------------------------------------------------

COMPOSE_PROFILES=hub

# Display name for this host in the UI (shown as a tab / section header).
DOZZLE_HOSTNAME=ana-docker

# ---- Hub-only -----------------------------------------------------------

# Host port for the web UI (container listens on 8080 internally).
DOZZLE_PORT=8088

# Comma-separated list of remote agents the hub should connect to.
# Leave blank if this host only views its own containers.
DOZZLE_REMOTE_AGENT=10.250.50.54:7007,10.100.50.40:7007

# Auth — `none` is fine behind the LAN / a reverse proxy with auth.
# Switch to `simple` and set USERNAME/PASSWORD to gate the UI itself.
DOZZLE_AUTH_PROVIDER=none
DOZZLE_USERNAME=
DOZZLE_PASSWORD=

# ---- Agent-only ---------------------------------------------------------

# Host port the agent listens on (container listens on 7007 internally).
DOZZLE_AGENT_PORT=7007

# Bind address — restrict to the LAN interface if you want belt-and-braces
# beyond what the firewall already enforces. Default 0.0.0.0 exposes on all.
DOZZLE_AGENT_BIND=0.0.0.0
