added healthcheck

This commit is contained in:
root
2023-11-13 22:34:54 -06:00
parent 9490859037
commit 28ea51f54c
2 changed files with 13 additions and 1 deletions

View File

@@ -6,6 +6,13 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./mosquitto/moquitto.conf:/mosquitto/config/mosquitto.conf - ./mosquitto/moquitto.conf:/mosquitto/config/mosquitto.conf
user: 1883:1883
healthcheck:
test: ["CMD", "mosquitto_sub", "-t", "$$SYS/#", "-C", "1", "-i", "healthcheck", "-W", "3"]
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
z2m: z2m:
container_name: zigbee2mqtt container_name: zigbee2mqtt

View File

@@ -1,2 +1,7 @@
allow_anonymous false
listener 1883 0.0.0.0
allow_anonymous true allow_anonymous true
listener 1883 0.0.0.0 listener 1880 127.0.0.1
persistence true