healthcheck is too intense
This commit is contained in:
@@ -12,21 +12,13 @@ services:
|
|||||||
- ./mosquitto/log:/mosquitto/log
|
- ./mosquitto/log:/mosquitto/log
|
||||||
ports:
|
ports:
|
||||||
- 1883:1883
|
- 1883:1883
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "mosquitto_sub", "-t", "$$SYS/#", "-C", "1", "-i", "healthcheck", "-W", "3", "--port", "1880"]
|
|
||||||
start_period: 15s
|
|
||||||
start_interval: 1s
|
|
||||||
interval: 5s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 5
|
|
||||||
|
|
||||||
z2m:
|
z2m:
|
||||||
container_name: zigbee2mqtt
|
container_name: zigbee2mqtt
|
||||||
image: koenkk/zigbee2mqtt
|
image: koenkk/zigbee2mqtt
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
mqtt:
|
- mqtt
|
||||||
condition: service_healthy
|
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
|||||||
Reference in New Issue
Block a user