infrastructure/ansible/roles/home-assistant/files/docker-compose.yml
Jake Howard fe5a5984c3
Remove container names from containers
They're not needed for anything, and caused annoying weird issues when cycling containers
2020-06-27 17:45:28 +01:00

33 lines
842 B
YAML

version: "2.3"
services:
homeassistant:
image: homeassistant/home-assistant:stable
network_mode: host
volumes:
- ./config:/config
environment:
- TZ=Europe/London
restart: unless-stopped
depends_on:
- influxdb
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
influxdb:
image: influxdb:1.8-alpine
restart: unless-stopped
volumes:
- ./influxdb:/var/lib/influxdb
environment:
- INFLUXDB_DB=home_assistant
esphome:
image: esphome/esphome:latest
restart: unless-stopped
network_mode: host
volumes:
- ./esphome:/config