Files
opt/compose.homeassistant.yaml

18 lines
446 B
YAML

services:
homeassistant:
container_name: homeassistant
image: homeassistant/home-assistant:2025.1.2
network_mode: host
privileged: true
restart: unless-stopped
volumes:
- /opt/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
extra_hosts:
- "host:${HOST_IP}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8123"]
interval: 30s
timeout: 10s
retries: 3