-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (75 loc) · 1.5 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
version: '2.4'
#### Services ####
services:
#### MQTT-Service ####
mqtt-service:
build:
context: ./src/mqtt-service
image: mqtt-service:0.2.0
restart: always
depends_on:
- grafana
- influxdb
networks:
- proxy-redirect
- app-net
ports:
- "30400:3000"
volumes:
- './publish/:/publish/'
- './cfg-data/:/cfg-data/'
mem_limit: 100mb
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
#### Database InfluxDB ####
influxdb:
build:
context: ./src/influxdb
image: database_influxdb:1.8.1-alpine
restart: always
volumes:
- data-storage:/var/lib/influxdb
networks:
- app-net
mem_limit: 250mb
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
#### Dashboard and Operation Grafana ####
grafana:
build:
context: ./src/grafana
image: dashboard_grafana:7.1.3
restart: always
depends_on:
- influxdb
volumes:
- dashboard-storage:/var/lib/grafana
networks:
- app-net
ports:
- "30300:3000"
mem_limit: 100mb
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
#### Volumes ####
volumes:
data-storage:
name: data-storage
dashboard-storage:
name: dashboard-storage
#### Network ####
networks:
proxy-redirect:
external: true
name: proxy-redirect
app-net:
name: app-net