Files
localthings/docker-compose.yml
Marc Billow 4c1497f5ba Bake smartthings-local into the dev Docker image
The dev container was relying on HA's runtime pip-install of manifest.json
requirements, which only fires when the integration is set up and needs
outbound network access at that exact moment; a container that had been
running since before the smartthings-local migration kept the old code
loaded in memory and never went through that install path, so restarting
it failed once it picked up the new manifest.json.

Repurpose the stale MQTT-bridge-era Dockerfile (its own code was already
deleted from this repo) to build on the official HA image with
smartthings-local pre-installed, and point docker-compose.yml at it via
`build: .`. Verified end-to-end: rebuilt the image, recreated the
container, and confirmed both live appliances (fridge, dishwasher)
reconnect and discover entities with no runtime install needed.
2026-07-07 22:38:38 -05:00

21 lines
606 B
YAML

services:
homeassistant:
build: .
image: localthings-ha-dev
container_name: localthings-ha
# host networking is required — DTLS runs over UDP and won't
# traverse Docker's bridge NAT to reach LAN appliances.
network_mode: host
volumes:
- ./ha_config:/config
- ./custom_components/localthings:/config/custom_components/localthings:ro
environment:
- TZ=America/Chicago
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8123/"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s