Fix influxdb comms

Stupid host network mode and DNS
This commit is contained in:
Jake Howard 2020-06-27 21:00:07 +01:00
parent cfd46ea752
commit e4aba817cc
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 7 additions and 1 deletions

View file

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

View file

@ -11,6 +11,8 @@ 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`)
@ -22,8 +24,11 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./influxdb:/var/lib/influxdb - ./influxdb:/var/lib/influxdb
ports:
- 127.0.0.1:48086:8086
environment: environment:
- INFLUXDB_DB=home_assistant - INFLUXDB_DB=home_assistant
- INFLUXDB_HTTP_AUTH_ENABLED=
esphome: esphome:
image: esphome/esphome:latest image: esphome/esphome:latest