-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
162 lines (149 loc) · 3.75 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
151
152
153
154
155
156
157
158
159
160
161
version: '3.1'
services:
unifi:
container_name: unifi
restart: unless-stopped
image: linuxserver/unifi
volumes:
- /srv/docker/unifi:/config
environment:
- PGID=0
- PUID=0
- ES_JAVA_OPTS='-Xms2g -Xmx2g'
ports:
- "8080:8080"
- "8081:8081"
- "8443:8443"
- "8843:8843"
- "8880:8880"
- "3478:3478"
syncthing:
container_name: hass-sync
restart: unless-stopped
image: linuxserver/syncthing
volumes:
- /srv/docker/syncthing:/config
- /srv/docker/hass-config:/sync
- /etc/localtime:/etc/localtime:ro
network_mode: host
environment:
- PGID=0
- PUID=0
mqtt:
container_name: MQTT
restart: unless-stopped
image: eclipse-mosquitto
privileged: true
volumes:
- /srv/docker/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- /srv/docker/mosquitto/log:/mosquitto/log
- /srv/docker/mosquitto/data:/mosquitto/data
- /etc/localtime:/etc/localtime:ro
ports:
- "1883:1883"
- "9001:9001"
mongo:
container_name: mongo
restart: unless-stopped
image: mongo
volumes:
- /srv/docker/mongo:/data/db
- /etc/localtime:/etc/localtime:ro
ports:
- "27017:27017"
hadockermon:
container_name: ha-dockermon
restart: unless-stopped
image: philhawthorne/ha-dockermon
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /srv/docker/ha-dockermon:/config
ports:
- "8126:8126"
# MariaDB
mariadb:
image: mariadb/server:10.3
container_name: mariadb
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: ha_db
MYSQL_USER: homeassistant
MYSQL_PASSWORD: "${HA_MYSQL_PASSWORD}"
user: "${LOCAL_USER}:${LOCAL_USER}"
volumes:
# Local path where the database will be stored.
- <local db path>:/var/lib/mysql
ports:
- "3306:3306"
postdb1:
container_name: postdb1
restart: unless-stopped
image: postgres:10.6
volumes:
- /srv/docker/postdb1:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
environment:
- POSTGRES_USER='hass'
- POSTGRES_PASSWORD='mysupersecretpassword'
ports:
- "5432:5432"
influxdb:
container_name: influxdb
restart: unless-stopped
image: influxdb
volumes:
- /srv/docker/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
- /srv/docker/influxdb/db:/var/lib/influxdb
environment:
- INFLUX_GRAPHITE_ENABLED='true'
ports:
- "8086:8086"
grafana:
container_name: grafana
restart: unless-stopped
image: grafana/grafana
depends_on:
- "influxdb"
volumes:
- /srv/docker/grafana:/var/lib/grafana
ports:
- "3000:3000"
chronograf:
container_name: chronograf
restart: unless-stopped
image: chronograf
depends_on:
- "influxdb"
volumes:
- /srv/docker/chronograf:/var/lib/chronograf
ports:
- "8888:8888"
homeassistant:
container_name: home-assistant
restart: unless-stopped
image: homeassistant/home-assistant
depends_on:
- "influxdb"
- "postdb1"
devices:
- /dev/ttyACM0:/dev/ttyACM0
volumes:
- /srv/docker/hass-config:/config
- /etc/localtime:/etc/localtime:ro
- /srv/docker/hass_media:/media
network_mode: host
privileged: true
nodered1:
container_name: node-red-1
restart: unless-stopped
image: nodered/node-red-docker:v8
depends_on:
- "homeassistant"
user: "${LOCAL_USER}:${LOCAL_USER}"
volumes:
- /srv/docker/node-red-1/user:/data
- /etc/localtime:/etc/localtime:ro
- /root/.ssh:/root/.ssh:ro
ports:
- "1880:1880"