wlc-monitor/docker-compose.yml
Johan Lundberg e7bde2b3f4
All checks were successful
publish-latest / docker (push) Successful in 9s
ci / test (3.10) (push) Successful in 19s
ci / test (3.12) (push) Successful in 19s
ci / test (3.13) (push) Successful in 19s
ci / container (push) Successful in 7s
publish-image / docker (push) Successful in 8s
Use Forgejo workflows and registry
2026-07-30 23:35:14 +02:00

36 lines
998 B
YAML

services:
wlc-monitor:
build: .
image: git.snakedesert.se/lundberg/wlc-monitor:latest
container_name: wlc-monitor
restart: unless-stopped
# Credentials come from .env (gitignored, chmod 600), never from the image.
env_file: [.env]
environment:
MONITOR_STATE_FILE: /data/state.json
# Timestamps in alert bodies use the container's zone; without this they
# render as UTC and will not match the controller's log timestamps.
TZ: ${TZ:-UTC}
volumes:
# Named volume: alert de-duplication and the consecutive-failure counter
# live here. Lose it and the container re-alerts from a blank slate.
- wlc-monitor-state:/data
# Read-only rootfs; the only thing that needs writing is /data.
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
logging:
driver: json-file
options: {max-size: "10m", max-file: "3"}
volumes:
wlc-monitor-state: