Don't use host hack to connect to influx

Just bind to internal port like a sane person
This commit is contained in:
Jake Howard 2020-06-28 19:16:22 +01:00
parent 9f09554053
commit e2ca9ad4a9
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 1 additions and 3 deletions

View file

@ -15,7 +15,7 @@ homeassistant:
- type: totp - type: totp
influxdb: influxdb:
host: host.docker.internal host: 127.0.0.1
port: 48086 port: 48086
person: person:

View file

@ -11,8 +11,6 @@ services:
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- influxdb - influxdb
extra_hosts:
- host.docker.internal:172.17.0.1
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`)