-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
105 lines (97 loc) · 2.08 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
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:
- backend
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:ro
environment:
LS_JAVA_OPTS: "-Xmx2g -Xms2g"
depends_on:
- elasticsearch
networks:
- 1frontend
- 2frontend
- 3frontend
- backend
kibana:
container_name: kibana
build:
context: kibana/
#ports:
# - "5601:5601"
volumes:
- ./kibana/config/:/usr/share/kibana/config:ro
depends_on:
- elasticsearch
networks:
- backend
#- 4frontend
1pymodbus:
container_name: 1modbus
build:
context: ./modbus
ports:
- "502:502"
environment:
- PYTHONUNBUFFERED=1
command: ["python3", "/root/server.py", "0"]
depends_on:
- logstash
- elasticsearch
- kibana
networks:
- 1frontend
apache:
container_name: apache
build:
context: ./apache
ports:
- "80:80"
environment:
APACHE_RUN_USER: "www-data"
APACHE_RUN_GROUP: "www-data"
APACHE_LOG_DIR: "/var/log/apache2"
APACHE_RUN_DIR: "/var/run/apache2"
volumes:
- /data/apache:/var/log/apache2:rw
depends_on:
- logstash
- elasticsearch
- kibana
networks:
- 2frontend
ssh_kipo:
container_name: ssh_kipo
build:
context: ./ssh
ports:
- "22:2222"
depends_on:
- logstash
- elasticsearch
- kibana
volumes:
- /data/ssh_kippo:/kippo-app/log/
networks:
- 3frontend
networks:
1frontend:
2frontend:
3frontend:
#4frontend:
backend: