Health Checks eingebaut

This commit is contained in:
hubobel 2026-01-11 16:58:25 +01:00
parent 61dca5242e
commit 613df62e32
5 changed files with 34 additions and 1 deletions

View file

@ -3,6 +3,11 @@ services:
mqtt5:
image: eclipse-mosquitto
container_name: mqtt5
healthcheck:
test: [ "CMD-SHELL", "mosquitto_sub -h localhost -p 1883 -t '$SYS/#' -C 1 -W 2 >/dev/null 2>&1 || exit 1" ]
interval: 10s
timeout: 5s
retries: 12
ports:
- "1883:1883" #default mqtt port
- "9001:9001" #default mqtt port for websockets