b3eefc4d14
- docker-health-endpoint.service (systemd user unit) - swarm-health-watchdog.json with Docker health enrichment - Calls http://172.19.0.1:18809/health for container state - Includes docker status/health/restarts in alert messages - Adds docker field to service check results Task: t_461f71fe
14 lines
285 B
Desktop File
14 lines
285 B
Desktop File
[Unit]
|
|
Description=Docker Health Endpoint (port 18809)
|
|
After=local-fs.target docker.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/python3 /home/will/lab/swarm/scripts/docker-health-server.py
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
Environment=PORT=18809
|
|
|
|
[Install]
|
|
WantedBy=default.target
|