-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.06 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
version: '2'
services:
home-assistant:
image: homeassistant/raspberrypi3-homeassistant
restart: always
command: [ "python", "-m", "homeassistant", "--config", "/config", "--log-rotate-days", '3' ]
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
ports:
- "8123:8123"
- "8943:8943"
devices:
- /dev/ttyUSB0
links:
- influx
influx:
image: hypriot/rpi-influxdb
restart: always
volumes:
- ./influx/data:/data
- /etc/localtime:/etc/localtime:ro
environment:
ADMIN_USER: "root"
INFLUX_INIT_PWD: "r00t"
PRE_CREATE_DB: "homeassistant"
ports:
- "8086:8086"
- "8083:8083"
grafana:
image: grafana/grafana:latest
restart: always
ports:
- "3000:3000"
volumes:
- ./grafana:/var/lib/grafana
links:
- influx