-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathold.docker-compose.yml
142 lines (130 loc) · 2.81 KB
/
old.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
version: '2.0'
services:
elasticsearch:
container_name: elasticsearch
build:
context: elasticsearch/
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- /data/elasticsearch:/usr/share/elasticsearch/data:rw
environment:
ES_JAVA_OPTS: "-Xmx2g -Xms2g"
networks:
- 1frontend
- 2frontend
- 3frontend
- 4frontend
- backend
restart: on-failure
logstash:
container_name: logstash
build:
context: logstash/
volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro
- /data:/data
environment:
LS_JAVA_OPTS: "-Xmx2g -Xms2g"
depends_on:
- elasticsearch
networks:
- 1frontend
- 2frontend
- 3frontend
- 4frontend
- backend
restart: on-failure
kibana:
container_name: kibana
build:
context: kibana/
volumes:
- ./kibana/config/:/usr/share/kibana/config:ro
depends_on:
- elasticsearch
networks:
- 1frontend
- 2frontend
- 3frontend
- 4frontend
- backend
restart: on-failure
1pymodbus:
container_name: 1modbus
build:
context: ./modbus
ports:
- "502:502"
volumes:
- /data/modbus/1log:/var/log/modbus
environment:
- PYTHONUNBUFFERED=1
command: ["python3", "/root/server.py", "0"]
depends_on:
- logstash
- elasticsearch
- kibana
networks:
- 1frontend
restart: on-failure
2pymodbus:
container_name: 2modbus
build:
context: ./modbus
ports:
- "503:502"
volumes:
- /data/modbus/2log:/var/log/modbus
environment:
- PYTHONUNBUFFERED=1
command: ["python3", "/root/server.py", "1"]
networks:
- 2frontend
depends_on:
- logstash
- elasticsearch
- kibana
restart: on-failure
3pymodbus:
container_name: 3modbus
build:
context: ./modbus
ports:
- "504:502"
volumes:
- /data/modbus/3log:/var/log/modbus
environment:
- PYTHONUNBUFFERED=1
command: ["python3", "/root/server.py", "2"]
networks:
- 3frontend
depends_on:
- logstash
- elasticsearch
- kibana
restart: on-failure
4pymodbus:
container_name: 4modbus
build:
context: ./modbus
ports:
- "505:502"
volumes:
- /data/modbus/4log:/var/log/modbus
environment:
- PYTHONUNBUFFERED=1
command: ["python3", "/root/server.py", "3"]
networks:
- 4frontend
depends_on:
- logstash
- elasticsearch
- kibana
restart: on-failure
networks:
1frontend:
2frontend:
3frontend:
4frontend:
backend: