-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
99 lines (93 loc) · 2.32 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
version: '3'
services:
postgres:
container_name: postgres
image: postgres:11.1
restart: always
network_mode: host
ports:
- "5234:5234"
environment:
POSTGRES_USER: homeassistant
POSTGRES_PASSWORD: <redacted>
volumes:
- /home/<user>/.postgres:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
influxdb:
container_name: influxdb
image: influxdb:1.7.1
restart: unless-stopped
network_mode: host
ports:
- "8086:8086"
- "8083:8083"
environment:
INFLUXDB_DB: homeassistant
INFLUXDB_USER: homeassistant
INFLUXDB_USER_PASSWORD: <redacted>
volumes:
- /home/<user>/.influxdb:/var/lib/influxdb
- /etc/localtime:/etc/localtime:ro
grafana:
depends_on:
- influxdb
image: grafana/grafana:latest
container_name: grafana
network_mode: host
ports:
- "3000:3000"
environment:
- GF_INSTALL_PLUGINS=grafana-clock-panel,briangann-gauge-panel,natel-plotly-panel,grafana-simple-json-datasource
volumes:
- /home/<user>/.grafana:/var/lib/grafana
homeassistant:
depends_on:
- postgres
- influxdb
container_name: home-assistant
image: homeassistant/home-assistant:latest
restart: always
privileged: true
command: [ "python", "-m", "homeassistant", "--config", "/config", "--log-rotate-days", '3' ]
network_mode: host
volumes:
- /home/<user>/.homeassistant:/config
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
ports:
- "8123:8123"
- "8943:8943"
devices:
- /dev/ttyUSB0
- /dev/ttyUSB1
- /dev/ttyACM0
letsencrypt:
container_name: lets-encrypt
image: linuxserver/letsencrypt
restart: always
cap_add:
- NET_ADMIN
network_mode: host
volumes:
- /etc/timezone:/etc/timezone:ro
- /home/<user>/.letsencrypt/config:/config
ports:
- "80:80"
- "443:443"
environment:
- PGID=1000
- PUID=1000
- EMAIL=<email>
- URL=<url>
- SUBDOMAINS=hass
- VALIDATION=http
nodered:
container_name: nodered
image: nodered/node-red-docker:latest
network_mode: host
volumes:
- /etc/timezone:/etc/timezone:ro
- /home/<user>/.nodered/:/data
ports:
- "1880:1880"
user: 'root'