-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
55 lines (55 loc) · 1.47 KB
/
compose.yaml
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
services:
elasticsearch:
image: elasticsearch:8.10.1
container_name: elasticsearch
environment:
discovery.type: single-node
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 10s
timeout: 10s
retries: 3
networks:
- elastic
logstash:
image: logstash:8.10.1
container_name: logstash
environment:
discovery.seed_hosts: logstash
LS_JAVA_OPTS: "-Xms512m -Xmx512m"
volumes:
- ./logs:/usr/share/logstash/data/logs
- ./logstash/pipeline/logstash-cdn-logs.config:/usr/share/logstash/pipeline/logstash-cdn-logs.config
ports:
- "6000:6000/tcp"
- "6000:6000/udp"
- "5044:5044"
- "9600:9600"
depends_on:
- elasticsearch
networks:
- elastic
command: logstash -f /usr/share/logstash/pipeline/logstash-cdn-logs.config
kibana:
image: kibana:8.10.1
container_name: kibana
ports:
- "5601:5601"
depends_on:
- elasticsearch
networks:
- elastic
environment:
ELASTICSEARCH_HOSTS: "http://elasticsearch:9200"
INTERACTIVESETUP_ENABLED: false
volumes:
- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
networks:
elastic:
driver: bridge