Add influxdb for homeassistant storage

This commit is contained in:
Jake Howard 2020-06-27 16:34:41 +01:00
parent 93b4bef05d
commit c89715c52b
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 13 additions and 0 deletions

View file

@ -13,3 +13,6 @@ scene: !include scenes.yaml
homeassistant: homeassistant:
auth_mfa_modules: auth_mfa_modules:
- type: totp - type: totp
influxdb:
host: influxdb

View file

@ -10,8 +10,18 @@ services:
environment: environment:
- TZ=Europe/London - TZ=Europe/London
restart: unless-stopped restart: unless-stopped
depends_on:
- influxdb
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.homeassistant.rule=Host(`homeassistant.jakehoward.tech`) - traefik.http.routers.homeassistant.rule=Host(`homeassistant.jakehoward.tech`)
- traefik.http.routers.homeassistant.tls.certresolver=le - traefik.http.routers.homeassistant.tls.certresolver=le
- traefik.http.services.home-assistant-homeassistant.loadbalancer.server.port=8123 - traefik.http.services.home-assistant-homeassistant.loadbalancer.server.port=8123
influxdb:
image: influxdb:1.8-alpine
restart: unless-stopped
volumes:
- ./influxdb:/var/lib/influxdb
environment:
- INFLUXDB_DB=home_assistant