Migrate to docker home assistant
This commit is contained in:
parent
dc56a2336b
commit
920ef55546
2 changed files with 27 additions and 14 deletions
|
@ -1,14 +1 @@
|
|||
http:
|
||||
routers:
|
||||
homeAssistant-secure:
|
||||
entryPoints:
|
||||
- https
|
||||
rule: Host(`domo.mrdev023.fr`)
|
||||
tls:
|
||||
certResolver: sslResolver
|
||||
service: homeAssistant
|
||||
services:
|
||||
homeAssistant:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://172.17.0.1:8123/"
|
||||
http: {}
|
||||
|
|
26
home_assistant/docker-compose.yml
Normal file
26
home_assistant/docker-compose.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
home_assistant:
|
||||
image: homeassistant/home-assistant
|
||||
restart: always
|
||||
container_name: home_assistant
|
||||
environment:
|
||||
- TZ=Europe/Paris
|
||||
volumes:
|
||||
- home_assistant_config:/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.mrdev023.fr`)"
|
||||
- "traefik.http.routers.homeassistant-secure.tls=true"
|
||||
- "traefik.http.routers.homeassistant-secure.tls.certresolver=sslResolver"
|
||||
# - "traefik.http.routers.homeassistant-secure.service=homeassistant"
|
||||
- "traefik.http.services.homeassistant.loadbalancer.server.port=8123"
|
||||
|
||||
volumes:
|
||||
home_assistant_config:
|
Loading…
Reference in a new issue