Begin migration to v2 Step 2
This commit is contained in:
parent
b91292576f
commit
a7140e5a84
37 changed files with 19 additions and 74 deletions
27
roles/home_assistant/templates/docker-compose.yml
Normal file
27
roles/home_assistant/templates/docker-compose.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
services:
|
||||
home_assistant:
|
||||
image: homeassistant/home-assistant
|
||||
restart: unless-stopped
|
||||
container_name: home_assistant
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
volumes:
|
||||
- {{ server.work_dir }}/home_assistant/base:/config
|
||||
- /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"
|
||||
- "traefik.http.services.homeassistant.loadbalancer.server.port=8123"
|
||||
logging:
|
||||
driver: loki
|
||||
options:
|
||||
loki-url: "https://lokidoki:vEGH5Z5siWgcDkNknvCVzPCyqhHSBJCBjeBRZJvxUP8SdgfxJ6AqCGutCWugGsx5@loki.mrdev023.fr/loki/api/v1/push"
|
||||
mode: non-blocking
|
Loading…
Add table
Add a link
Reference in a new issue