Health Checks eingebaut

This commit is contained in:
hubobel 2026-01-11 17:45:47 +01:00
parent 613df62e32
commit 62b2ee23f4
5 changed files with 67 additions and 5 deletions

View file

@ -4,7 +4,7 @@ services:
container_name: telegraf
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8094" ]
test: [ "CMD-SHELL", "pidof telegraf >/dev/null 2>&1 || exit 1" ]
interval: 10s
timeout: 3s
retries: 12