Files
Nathan Falvey c3c6720401 feat: 🎨 Added a new portainer configuration setup for home-assistant.
Implemented a new portainer configuration which would allow users to implement a home assistant setup on their current portainer configuration.
2026-03-03 14:08:04 +00:00

22 lines
658 B
YAML

services:
homeassistant:
image: homeassistant/home-assistant:stable
container_name: homeassistant
# Resource constraints to prevent host exhaustion
mem_limit: 2g
cpu_shares: 512
security_opt:
- no-new-privileges:true
# Healthcheck ensures the web interface is responsive
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8123/"]
interval: 30s
timeout: 10s
retries: 3
network_mode: host # Required for discovery features (mDNS, UPnP)
volumes:
- ./config:/config:rw
environment:
- TZ=${TIMEZONE:-UTC}
# Restart policy for stability
restart: unless-stopped