Files
dockwatch/examples/compose-agent.yml
T
jbergner f3a687543c
release-tag / release-image (push) Successful in 2m28s
v9.6.0
2026-09-01 22:46:20 +02:00

28 lines
1007 B
YAML

services:
dockwatch-agent:
image: dockwatch:local
restart: unless-stopped
ports: ["127.0.0.1:8080:8080"]
environment:
APP_MODE: agent
AGENT_TOKEN: "replace-with-a-random-token-at-least-24-characters"
HTTP_TIMEOUT_SECONDS: "10"
# Optional: set HOST_ROOT=/host and mount /:/host:ro for identity checks.
HOST_ROOT: ""
ALLOW_HOST_USER_MANAGEMENT: "false"
ALLOW_HOST_PERMISSION_MANAGEMENT: "false"
HOST_SECURITY_ENABLED: "false"
ALLOW_HOST_SECURITY_CHANGES: "false"
ALLOW_HOST_PACKAGE_MANAGEMENT: "false"
# Optional for Arch/AUR agents, e.g. "deploy".
HOST_AUR_USER: ""
HOST_SECURITY_HOST_PID: "1"
volumes:
- ./agent-data:/data
- ./agent-stacks:/stacks
- /var/run/docker.sock:/var/run/docker.sock
# For read-only host UID/GID + bind ownership checks:
# - /:/host:ro
# For explicit admin host-user creation only: use /:/host:rw and set
# ALLOW_HOST_USER_MANAGEMENT=true.