infrastructure/ansible/roles/home-assistant/files/docker-compose.yml

28 lines
741 B
YAML
Raw Normal View History

2020-06-27 16:16:52 +01:00
version: "2.3"
services:
homeassistant:
image: homeassistant/home-assistant:stable
container_name: home-assistant
network_mode: host
volumes:
- ./config:/config
environment:
- TZ=Europe/London
restart: unless-stopped
2020-06-27 16:34:41 +01:00
depends_on:
- influxdb
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-06-27 16:34:41 +01:00
influxdb:
image: influxdb:1.8-alpine
restart: unless-stopped
volumes:
- ./influxdb:/var/lib/influxdb
environment:
- INFLUXDB_DB=home_assistant