-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
204 lines (181 loc) · 4.89 KB
/
docker-compose.yaml
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
version: '3.1'
services:
outsidetemp-service:
build: ./outsidetemp
volumes:
- ./outsidetemp:/usr/src/app
ports:
- 5001:80
# docker run --name some-redis -d redis
redis-cache:
image: redis:latest
# volumes:
# - redis.conf:/usr/local/etc/redis/redis.conf
# command: redis redis-server /usr/local/etc/redis/redis.con
ecobee-service:
# build: ./ecobeeapi
image: docker.pkg.github.com/richie256/ecobeeapi/ecobeeapi:1.0
volumes:
- ./ecobeeapi:/usr/src/app
ports:
- 5002:80
depends_on:
- redis-cache
# docker run --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=myroot' -e 'VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:1234' vault
# docker run --cap-add=IPC_LOCK -e 'VAULT_LOCAL_CONFIG={"backend": {"file": {"path": "/vault/file"}}, "default_lease_ttl": "168h", "max_lease_ttl": "720h"}' vault server
vault:
image: vault:latest
cap_add:
- IPC_LOCK
volumes:
- ./vault/config:/vault/config
- ./vault/policies:/vault/policies
- ./vault/data:/vault/data
ports:
- 8200:8200
environment:
- VAULT_ADDR=http://0.0.0.0:8200
- VAULT_API_ADDR=http://0.0.0.0:8200
- VAULT_ADDRESS=http://0.0.0.0:8200
command: vault server -config=/vault/config/vault.json
#videocap:
# build: ./videocap_rtsp
# volumes:
# - ./videocap_rtsp:/usr/src/app
# - ./appdata:/appdata
# # -
# environment:
# - CAPTURE_DURATION=10
chronograf:
container_name: chronograf
image: chronograf:latest
ports:
- 8888:8888
volumes:
- chronograf-data:/var/lib/chronograf
depends_on:
- influxdb
command: chronograf --influxdb-url=http://192.168.68.120:8086
eclipse-mosquitto:
container_name: eclipse-mosquitto
image: eclipse-mosquitto:latest
ports:
- 1883:1883
- 9001:9001
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./mosquitto_passwd:/etc/mosquitto/passwd:ro
- eclipse-mosquito-data:/mosquitto/data
- eclipse-mosquito-log:/mosquitto/log
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant
volumes:
- ./homeassistant_config:/config
- /etc/localtime:/etc/localtime:ro
environment:
- "TZ=America/Montreal"
restart: always
network_mode: host
ports:
- "8123:8123"
privileged: true
depends_on:
- eclipse-mosquitto
influxdb:
image: influxdb
volumes:
- influx:/var/lib/influxdb
env_file:
influxdb-variables.env
network_mode: host
#environment:
# INFLUXDB_ADMIN_USER: "FIX_ME"
# INFLUXDB_ADMIN_PASSWORD: "FIX_ME"
# - INFLUXDB_USER:
# - INFLUXDB_USER_PASSWORD:
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
restart: always
telegraf:
image: telegraf:1.6.1
network_mode: "host"
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
depends_on:
- influxdb
- outsidetemp-service
- ecobee-service
# MQTT_USERNAME=mqtt_username MQTT_PASSWORD=mqtt_password MQTT_HOST=mqtt_ip MQTT_PORT=mqtt_port CONFIG=config.yaml PYHQ_OUTPUT=MQTT registry.gitlab.com/ttblt-hass/pyhydroquebec:master
pyhydroquebec:
# build: ./pyhydroquebec
image: registry.gitlab.com/ttblt-hass/pyhydroquebec:master
# volumes:
# - ./pyhydroquebec_config.yaml:/etc/pyhydroquebec/pyhydroquebec.yaml:ro
#env_file:
# pyhydroquebec-variables.env
command: pyhydroquebec -u [email protected] -p '!Ipodman256' -l
grafana:
image: grafana/grafana
ports:
- 0.0.0.0:3000:3000
#environment:
# GF_INSTALL_PLUGINS: "natel-discrete-panel,fatcloud-windrose-panel,vonage-status-panel,neocat-cal-heatmap-panel"
volumes:
- grafana:/var/lib/grafana
depends_on:
- influxdb
# docker run -it -p 1880:1880 --name mynodered nodered/node-red:latest
nodered:
container_name: nodered
image: nodered/node-red
volumes:
- nodered-data:/data
ports:
- 1880:1880
depends_on:
- eclipse-mosquitto
- homeassistant
rtl_tcp:
# container_name: rtl_tcp
build:
context: ./rtlamr
dockerfile: Dockerfile.rtl_tcp
restart: unless-stopped
devices:
- /dev/bus/usb
rtlamr:
# container_name: rtlamr
build:
context: ./rtlamr
dockerfile: Dockerfile.rtlamr
restart: always
depends_on:
- rtl_tcp
rtlamr-mqttexporter:
build:
context: rtlamr-mqttexporter
restart: unless-stopped
env_file:
mqttexporter-variables.env
depends_on:
- eclipse-mosquitto
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
influx:
driver: local
grafana:
driver: local
videocap:
driver: local
eclipse-mosquito-data:
driver: local
eclipse-mosquito-log:
driver: local
nodered-data:
driver: local
chronograf-data:
driver: local