docker-compose.yml: - Uses ghcr.io/home-assistant/home-assistant:stable - network_mode: host (required for DTLS/UDP to reach LAN appliances) - custom_components/localthings mounted read-only into /config/custom_components/ - ha_config/ volume for persistent HA state ha_config/configuration.yaml: - Minimal config (frontend, http, logger) - localthings logged at DEBUG, everything else at warning ha_config/ gitignored — contains auth tokens and secrets after onboarding
20 lines
619 B
YAML
20 lines
619 B
YAML
services:
|
|
homeassistant:
|
|
image: ghcr.io/home-assistant/home-assistant:stable
|
|
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
|