-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.45 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
version: '3.9'
services:
setup:
profiles:
- setup
image: debian:stable-slim
init: true
entrypoint: /home/elasticsearch/setup.sh
volumes:
- ./bin/:/home/elasticsearch/
- ./config/roles/:/home/elasticsearch/roles/
env_file: .env
depends_on:
- elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION}
volumes:
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
env_file: .env
environment:
ES_JAVA_OPTS: -Xms512m -Xmx512m
logstash:
image: docker.elastic.co/logstash/logstash:${ELK_VERSION}
volumes:
- ./config/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./pipeline:/usr/share/logstash/pipeline
env_file: .env
environment:
LS_JAVA_OPTS: -Xms256m -Xmx256m
depends_on:
- elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:${ELK_VERSION}
volumes:
- ./config/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- 5601:5601
env_file: .env
depends_on:
- elasticsearch
app_1:
build:
context: app
env_file: .env
volumes:
- ./config/filebeat_app_1.yml:/usr/share/filebeat/filebeat.yml
depends_on:
- elasticsearch
app_2:
build:
context: app
env_file: .env
volumes:
- ./config/filebeat_app_2.yml:/usr/share/filebeat/filebeat.yml
depends_on:
- elasticsearch