added healthcheck
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user