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/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log - ./mosquitto/log:/mosquitto/log
healthcheck: 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"] test: ["CMD", "mosquitto_pub", "-p", "1883", "-t", "healthcheck", "-m", "ok", "-r", "--quiet"]
interval: 10s interval: 30s
timeout: 5s timeout: 5s
retries: 3 retries: 3
start_period: 15s start_period: 30s
zigbee2mqtt: zigbee2mqtt:
image: ghcr.io/pine64/zigbee2mqtt:latest-dev # BLZ fork, NOT koenkk image: ghcr.io/pine64/zigbee2mqtt:latest-dev # BLZ fork, NOT koenkk
@@ -28,8 +28,11 @@ services:
volumes: volumes:
- ./zigbee2mqtt:/app/data - ./zigbee2mqtt:/app/data
devices: 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"] entrypoint: ["/app/data/scripts/entrypoint.sh"]
command: ["/sbin/tini", "--", "node", "index.js"]
environment: environment:
TZ: America/Los_Angeles TZ: America/Los_Angeles
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
set -e set -e
node /app/data/scripts/blz-bridge-patch.js cd /app && node /app/data/scripts/blz-bridge-patch.js
exec docker-entrypoint.sh "$@" exec docker-entrypoint.sh "$@"