The Docker Guard Agent is a lightweight container that exposes a read-only HTTP API to monitor your Docker host. It runs alongside your existing containers and reads from the Docker socket — no port forwarding or external services required.
/var/run/docker.sock).18080).Pick a long, random string. The Agent only accepts requests with a matching X-API-Key header.
openssl rand -hex 32
Save the following as docker-compose.yml and run docker compose up -d:
services:
docker-guard-agent:
container_name: docker-guard-agent
image: registry.git.no-logs.de/hans/docker-guard-agent-images:latest
pull_policy: always
restart: unless-stopped
ports:
- '18080:8080'
environment:
- DOCKERGUARD_API_KEY=<your-api-key>
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- docker-guard-data:/data
volumes:
docker-guard-data:
:ro only if you want to use start/stop/restart actions (Control Pack required in the app).<your-api-key> with the value you generated.18080) if it is already in use on your machine.curl -k https://<host-ip>:18080/health
{"status":"ok","version":"0.1.0"}
https://<host-ip>:18080