Health Checks eingebaut
This commit is contained in:
parent
613df62e32
commit
62b2ee23f4
5 changed files with 67 additions and 5 deletions
|
|
@ -4,10 +4,8 @@ services:
|
|||
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
|
||||
test: [ "CMD-SHELL", "mosquitto_pub -h localhost -p 1883 -u 'mqtt_user' -P 'mqtt_pw' -t 'healthcheck/ping' -n -q 0 >/dev/null 2>&1 || exit 1" ]
|
||||
|
||||
ports:
|
||||
- "1883:1883" #default mqtt port
|
||||
- "9001:9001" #default mqtt port for websockets
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue