-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (60 loc) · 1.17 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
version: "3.7"
services:
mosquitto:
image: eclipse-mosquitto
restart: on-failure
ports:
- "1883:1883"
volumes:
- mosquittoData:/var/lib/mosquitto/
grafana:
image: grafana/grafana
ports:
- "3000:3000"
restart: always
links:
- influxdb
volumes:
- grafanaData:/var/lib/grafana
- ./grafana.ini:/etc/grafana/grafana.ini
networks:
- nginx_network
nginx:
image: nginx
container_name: nginx
volumes:
- ./certs/selfhydro.ddns.net:/certs/selfhydro.ddns.net
- ./nginx.conf:/etc/nginx/nginx.conf
restart: always
ports:
- 80:80
- 443:443
links:
- grafana
networks:
- nginx_network
indluxdbStateSubscriber:
image: influxdb-subscriber
build:
context: .
dockerfile: Dockerfile
restart: always
links:
- mosquitto
- influxdb
influxdb:
image: influxdb:latest
container_name: influxdb
ports:
- "8083:8083"
- "8086:8086"
- "8090:8090"
restart: always
volumes:
- influxdbData:/var/lib/influxdb
volumes:
influxdbData:
grafanaData:
mosquittoData:
networks:
nginx_network: