2020-06-27 16:16:52 +01:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
homeassistant:
|
|
|
|
image: homeassistant/home-assistant:stable
|
|
|
|
network_mode: host
|
|
|
|
volumes:
|
2020-09-27 11:31:05 +01:00
|
|
|
- "{{ app_data_dir }}/home-assistant:/config"
|
2020-06-27 16:16:52 +01:00
|
|
|
environment:
|
|
|
|
- TZ=Europe/London
|
|
|
|
restart: unless-stopped
|
2020-06-27 16:34:41 +01:00
|
|
|
depends_on:
|
|
|
|
- influxdb
|
2020-08-30 16:58:27 +01:00
|
|
|
- db
|
2020-06-27 16:16:52 +01:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.homeassistant.rule=Host(`homeassistant.jakehoward.tech`)
|
|
|
|
- traefik.http.routers.homeassistant.tls.certresolver=le
|
|
|
|
- traefik.http.services.home-assistant-homeassistant.loadbalancer.server.port=8123
|
2020-09-18 12:42:36 +01:00
|
|
|
- traefik.http.routers.homeassistant.middlewares=compress@file
|
2020-06-27 16:34:41 +01:00
|
|
|
|
|
|
|
influxdb:
|
|
|
|
image: influxdb:1.8-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2020-09-27 11:31:05 +01:00
|
|
|
- /mnt/tank/dbs/influx/home-assistant:/var/lib/influxdb
|
2020-06-27 21:00:07 +01:00
|
|
|
ports:
|
|
|
|
- 127.0.0.1:48086:8086
|
2020-08-07 11:52:15 +01:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
grafana:
|
|
|
|
aliases:
|
|
|
|
- ha-influxdb
|
2020-06-27 16:34:41 +01:00
|
|
|
environment:
|
|
|
|
- INFLUXDB_DB=home_assistant
|
2020-06-27 21:00:07 +01:00
|
|
|
- INFLUXDB_HTTP_AUTH_ENABLED=
|
2020-06-27 16:45:00 +01:00
|
|
|
|
|
|
|
esphome:
|
|
|
|
image: esphome/esphome:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
network_mode: host
|
|
|
|
volumes:
|
2020-09-27 11:31:05 +01:00
|
|
|
- "{{ app_data_dir }}/esphome:/config"
|
2020-08-07 11:52:15 +01:00
|
|
|
|
2020-08-30 16:58:27 +01:00
|
|
|
db:
|
|
|
|
image: postgres:12-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:45432:5432
|
|
|
|
volumes:
|
|
|
|
- /mnt/tank/dbs/postgres/home-assistant:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=home-assistant
|
|
|
|
- POSTGRES_USER=home-assistant
|
|
|
|
|
2020-08-07 11:52:15 +01:00
|
|
|
networks:
|
|
|
|
grafana:
|
|
|
|
external: true
|