-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·119 lines (110 loc) · 2.67 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '3.8'
services:
log-generator:
container_name: log-generator
build:
dockerfile: Dockerfile
context: ./log-generator
volumes:
- ./logs:/logs
environment:
- LOG_ENTRY_COUNT=$LOG_ENTRY_COUNT
- LOG_UPDATE_RATE=$LOG_UPDATE_RATE
networks:
- backend
depends_on:
elasticsearch:
condition: service_healthy
manticore:
condition: service_healthy
elasticsearch:
build:
context: ./es
container_name: elastic-for-kibana
environment:
- discovery.type=single-node
- xpack.ml.enabled=false
volumes:
- ./$ES_DATA_DIR:/usr/share/elasticsearch/data
networks:
- backend
healthcheck:
test: curl -s http://localhost:9200 >/dev/null || exit 1
interval: 15s
timeout: 5s
retries: 10
manticore:
build:
context: ./manticore
container_name: manticore-for-kibana
environment:
- EXTRA=1
- searchd_threads=64
volumes:
- ./$MANTICORE_DATA_DIR:/var/lib/manticore
networks:
- backend
healthcheck:
test: ps aux | grep "[s]earchd" >/dev/null || exit 1
interval: 15s
timeout: 5s
retries: 10
filebeat-elasticsearch:
build:
dockerfile: Dockerfile_es
context: ./filebeat
user: root
container_name: filebeat-for-elastic
volumes:
- ./logs:/logs
networks:
- backend
depends_on:
elasticsearch:
condition: service_healthy
filebeat-manticore:
build:
dockerfile: Dockerfile_manticore
context: ./filebeat
user: root
container_name: filebeat-for-manticore
volumes:
- ./logs:/logs
networks:
- backend
depends_on:
manticore:
condition: service_healthy
kibana-for-elasticsearch:
image: docker.elastic.co/kibana/kibana:7.6.0
container_name: kibana-for-elasticsearch
environment:
- SERVER_NAME=kibana
- ELASTICSEARCH_HOSTS=http://elastic-for-kibana:9200
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=pass
networks:
- backend
ports:
- "$ES_KIBANA_PORT:5601"
depends_on:
elasticsearch:
condition: service_healthy
kibana-for-manticore:
image: docker.elastic.co/kibana/kibana:7.6.0
container_name: kibana-for-manticore
environment:
- SERVER_NAME=kibana
- ELASTICSEARCH_HOSTS=http://manticore-for-kibana:9308
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=pass
networks:
- backend
ports:
- "$MANTICORE_KIBANA_PORT:5601"
depends_on:
manticore:
condition: service_healthy
networks:
backend:
driver: bridge