mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2025-12-19 04:26:04 +00:00
34 lines
757 B
YAML
34 lines
757 B
YAML
services:
|
|
homeassistant:
|
|
container_name: homeassistant
|
|
image: "ghcr.io/home-assistant/home-assistant:2025.10.1"
|
|
ports:
|
|
- "8123"
|
|
networks:
|
|
- default
|
|
- proxy
|
|
environment:
|
|
- TZ=Europe/Paris
|
|
volumes:
|
|
- ha_config:/config
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /run/dbus:/run/dbus:ro
|
|
restart: unless-stopped
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.homeassistant.rule=Host(`homeassistant.lan`)"
|
|
- "traefik.http.services.homeassistant.loadbalancer.server.port=8123"
|
|
|
|
volumes:
|
|
ha_config:
|
|
driver: local
|
|
driver_opts:
|
|
type: 'none'
|
|
o: 'bind'
|
|
device: '/app/home-assistant/config'
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
name: proxy
|