-
Notifications
You must be signed in to change notification settings - Fork 1
/
homeassistant.yml
76 lines (75 loc) · 2.01 KB
/
homeassistant.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Template used: https://github.com/aneisch/home-assistant-config/blob/master/extras/docker-compose/unified/docker-compose.yml
version: '3.7'
services:
homeassistant:
depends_on:
- mariadb
image: homeassistant/home-assistant:stable
environment:
- TZ=Europe/Berlin
volumes:
- /mnt/docker-volumes/homeassistant-config:/config
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
healthcheck:
test: 'curl -m 90 -sLf http://localhost:8123 || date >> /config/healthcheck' #| pkill -9 python3'
interval: 90s
timeout: 60s
retries: 2
ports:
- target: 8123
published: 8123
mode: host
restart: always
networks:
- traefik-public
mariadb:
image: mariadb:10.6
user: 0:0
environment:
- MYSQL_ROOT_PASSWORD=!!!CENSORED!!!
- MYSQL_PASSWORD=!!!CENSORED!!!
- MYSQL_DATABASE=homeassistant
- MYSQL_USER=homeassistant
- TZ=Europe/Berlin
volumes:
- /mnt/docker-volumes/homeassistant-mariadb:/var/lib/mysql
healthcheck:
test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]
start_period: 1m
interval: 1m
timeout: 5s
retries: 3
ports:
- target: 3306
published: 3366
mode: host
restart: always
esphome:
# This is a custom build for now. Based on https://github.com/esphome/esphome/pull/671
#image: esphome-dev
#image: esphome/esphome:2021.10.3
image: esphome/esphome
environment:
- TZ=Europe/Berlin
volumes:
- /mnt/docker-volumes/esphome-data:/config
- /etc/localtime:/etc/localtime:ro
ports:
- target: 6052
published: 6052
mode: host
restart: unless-stopped
cupholder:
image: luois45/cupholder
devices:
- /dev/cdrom:/dev/cdrom
ports:
- target: 3280
published: 3280
mode: host
restart: unless-stopped
networks:
traefik-public:
external: true