1
0
Fork 0
myserver-configuration/roles/home_assistant/templates/docker-compose.yml.j2

25 lines
929 B
Text
Raw Normal View History

2023-05-20 17:23:11 +02:00
version: '3'
services:
home_assistant:
image: homeassistant/home-assistant
restart: unless-stopped
2023-05-20 17:23:11 +02:00
container_name: home_assistant
environment:
- TZ=Europe/Paris
volumes:
- {{ server.work_dir }}/home_assistant/base:/config
2023-05-20 17:23:11 +02:00
- /etc/localtime:/etc/localtime:ro
network_mode: host
expose:
- 8123
labels:
- "traefik.enable=true"
- "traefik.http.routers.homeassistant-secure.entrypoints=https"
- "traefik.http.routers.homeassistant-secure.rule=Host(`domo.{{ server.domain }}`)"
- "traefik.http.routers.homeassistant-secure.tls=true"
- "traefik.http.routers.homeassistant-secure.tls.certresolver=sslResolver"
# - "traefik.http.routers.homeassistant-secure.service=homeassistant"
- "traefik.http.routers.homeassistant-secure.middlewares=private-network@file"
2023-05-20 17:23:11 +02:00
- "traefik.http.services.homeassistant.loadbalancer.server.port=8123"