forked from thomasloven/hass-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
150 lines (139 loc) · 3.66 KB
/
docker-compose.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: '2.0'
networks:
# By adding the homeassistant image to this network, it gets a local ip in
# the network and can use the discovery component
host:
driver: macvlan
driver_opts:
parent: vmbr1
ipam:
config:
# The following values are overridden in docker-compose.override.yml
- subnet: <subnet>
gateway: <gateway ip>
ip_range: <homeassistant ip>/32
services:
mysensors:
container_name: MySensors
image: akshmakov/serialport-server:amd64
restart: always
devices:
- "/dev/mysensors:/dev/ttyUSB0"
environment:
DEVICE: /dev/ttyUSB0
BAUDRATE: 115200
rflink:
container_name: RFLink
image: akshmakov/serialport-server:amd64
restart: always
devices:
- "/dev/rflink:/dev/ttyUSB0"
environment:
DEVICE: /dev/ttyUSB0
BAUDRATE: 57600
deconz:
container_name: deCONZ
image: marthoc/deconz:amd64-2.05.OVERRIDE-ME
restart: always
ports:
- "8082:8082" # Management port
- "5900:5900" # VNC port
devices:
- "/dev/conbee:/dev/ttyUSB0"
volumes:
- /root/docker/deconz:/root/.local/share/dresden-elektronik/deCONZ
environment:
DECONZ_WEB_PORT: 8082
DECONZ_WS_PORT: 10443
DECONZ_VNC_MODE: 1
# The following value is overridden in docker-compose.override.yml
DECONZ_VNC_PASSWORD: secret
db:
container_name: MariaDB
image: mariadb
restart: always
volumes:
- /root/docker/mariadb:/var/lib/mysql
environment:
TZ: Europe/Stockholm
MYSQL_DATABASE: hass
MYSQL_USER: hass
MYSQL_PASSWORD: hass
# The following value is overridden in docker-compose.override.yml
MYSQL_ROOT_PASSWORD: secret
influx:
container_name: InfluxDB
image: influxdb
restart: always
volumes:
- /root/docker/influxdb:/var/lib/influxdb
environment:
TZ: Europe/Stockholm
INFLUXDB_DB: hass
INFLUXDB_USER: hass
INFLUXDB_USER_PASSWORD: hass
grafana:
container_name: Grafana
image: grafana/grafana
restart: always
ports:
- "3000:3000"
volumes:
- /root/docker/grafana:/var/lib/grafana
user: "0"
environment:
TZ: Europe/Stockholm
mosquitto:
container_name: Mosquitto
image: eclipse-mosquitto:latest
restart: always
ports:
- "1883:1883"
- "9001:9001" # Websocket port
volumes:
- /root/docker/mosquitto/data:/mosquitto/data
- /root/docker/mosquitto/log:/mosquitto/log
homeassistant:
container_name: HomeAssistant
# The following value is overridden in docker-compose.override.yml
image: homeassistant/home-assistant:override_me
restart: always
networks:
- default
- host
ports:
- "8123:8123"
volumes:
- /root/docker/hass/home-assistant:/config
working_dir: /config
environment:
TZ: Europe/Stockholm
XDG_CACHE_HOME: /config/.data
PIP_USER: "yes"
PYTHONUSERBASE: /config/.local
appdaemon:
container_name: AppDaemon
image: acockburn/appdaemon
restart: always
volumes:
- /root/docker/hass/home-assistant/appdaemon:/conf
- /root/docker/appdaemon/certs:/certs
environment:
TZ: Europe/Stockholm
# The following values ar overridden in docker-compose.override.yml
HA_URL: homeassistant:8123
DASH_URL: appdaemon:5050
TOKEN: secret_token
glances:
container_name: glances
image: nicolargo/glances
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
TZ: Europe/Stockholm
GLANCES_OPT: -w
pid: host
ports:
- 61208:61208
- 61209:61209