deploy: device port fix, entrypoint CMD, mosquitto healthcheck

This commit is contained in:
2026-07-11 04:37:06 -07:00
parent ba3e172dda
commit 97c30acfdd
2 changed files with 8 additions and 5 deletions
+7 -4
View File
@@ -11,11 +11,11 @@ services:
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
healthcheck:
test: ["CMD", "sh", "-c", "timeout 3 mosquitto_sub -p 1883 -t healthcheck -C 1 --quiet & sleep 0.5 && mosquitto_pub -p 1883 -t healthcheck -m ok -r; wait"]
interval: 10s
test: ["CMD", "mosquitto_pub", "-p", "1883", "-t", "healthcheck", "-m", "ok", "-r", "--quiet"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
start_period: 30s
zigbee2mqtt:
image: ghcr.io/pine64/zigbee2mqtt:latest-dev # BLZ fork, NOT koenkk
@@ -28,8 +28,11 @@ services:
volumes:
- ./zigbee2mqtt:/app/data
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
- source: /dev/serial/by-path/platform-3f980000.usb-usb-0:1.1.2:1.0-port0
target: /dev/ttyUSB0
permissions: rw
entrypoint: ["/app/data/scripts/entrypoint.sh"]
command: ["/sbin/tini", "--", "node", "index.js"]
environment:
TZ: America/Los_Angeles