rearranged volumes
This commit is contained in:
@@ -5,14 +5,14 @@ services:
|
|||||||
image: eclipse-mosquitto
|
image: eclipse-mosquitto
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./mosquitto/moquitto.conf:/mosquitto/config/mosquitto.conf
|
- ./mosquitto/config:/mosquitto/config
|
||||||
user: 1883:1883
|
- ./mosquitto/data/:/mosquitto/data/
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mosquitto_sub", "-t", "$$SYS/#", "-C", "1", "-i", "healthcheck", "-W", "3"]
|
test: ["CMD", "mosquitto_sub", "-t", "$$SYS/#", "-C", "1", "-i", "healthcheck", "-W", "3"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 10s
|
start_period: 5s
|
||||||
|
|
||||||
z2m:
|
z2m:
|
||||||
container_name: zigbee2mqtt
|
container_name: zigbee2mqtt
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ allow_anonymous true
|
|||||||
listener 1880 127.0.0.1
|
listener 1880 127.0.0.1
|
||||||
|
|
||||||
persistence true
|
persistence true
|
||||||
|
persistence_location /mosquitto/data/
|
||||||
0
mosquitto/data/.gitkeep
Normal file
0
mosquitto/data/.gitkeep
Normal file
Reference in New Issue
Block a user