Add influxdb for homeassistant storage
This commit is contained in:
parent
93b4bef05d
commit
c89715c52b
2 changed files with 13 additions and 0 deletions
|
@ -13,3 +13,6 @@ scene: !include scenes.yaml
|
||||||
homeassistant:
|
homeassistant:
|
||||||
auth_mfa_modules:
|
auth_mfa_modules:
|
||||||
- type: totp
|
- type: totp
|
||||||
|
|
||||||
|
influxdb:
|
||||||
|
host: influxdb
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue