Files
docker-compose/homeassistant/docker-compose.yml
T

23 lines
866 B
YAML
Raw Normal View History

2025-07-14 12:48:15 +05:30
# Home Assistant Smart Home Platform Configuration
2025-06-18 16:12:48 +05:30
services:
homeassistant:
2025-07-14 12:48:15 +05:30
# Basic container configuration
2025-06-18 16:12:48 +05:30
container_name: homeassistant
image: docker.io/homeassistant/home-assistant:2025.7.2 # Official Home Assistant image
2025-07-14 22:11:32 +05:30
restart: unless-stopped # Auto-restart on failure
# Network configuration (host mode for full local network access)
network_mode: host # Required for discovering local devices and integrations
2025-07-14 12:48:15 +05:30
# Persistent storage and system configuration
2025-06-18 16:12:48 +05:30
volumes:
2025-07-14 12:48:15 +05:30
- ${APPDATA_PATH}/homeassistant/config:/config # Configuration files
2025-07-14 22:11:32 +05:30
- /etc/localtime:/etc/localtime:ro # Sync host timezone for proper logging
2025-07-16 22:42:38 +05:30
# Health check configuration
2025-07-16 22:42:04 +05:30
healthcheck:
test: "curl --connect-timeout 10 --silent -f http://127.0.0.1:8123/ || exit 1"
interval: 45s
timeout: 30s
retries: 3