refactor: extract mqtt_demo/ — move bridge, config, logger, appliance descriptors

This commit is contained in:
Marc Billow
2026-07-04 16:11:10 -05:00
parent 24fc197a9e
commit aa9ec0f0d9
17 changed files with 51 additions and 42 deletions
+22
View File
@@ -0,0 +1,22 @@
services:
smartthings-local:
build:
context: ..
dockerfile: mqtt_demo/Dockerfile
container_name: smartthings-local
restart: unless-stopped
# Bridge is outbound-only (DTLS UDP to each appliance, MQTT to the
# broker on 1883). No ports to expose.
volumes:
# Holds the client cert + key. APPDATA_DIR comes from .env;
# on Unraid this is typically /mnt/user/appdata/smartthings-local/.
# Bare-metal dev falls back to ./certs alongside this compose file.
- ${APPDATA_DIR:-./certs}:/config:ro
# All runtime config is in .env. env_file passes every variable
# straight into the container, so adding a new appliance is a
# .env edit only — no compose change.
env_file:
- .env