-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose-es.yml
40 lines (38 loc) · 1.08 KB
/
docker-compose-es.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
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms3g -Xmx8g"
ports:
- "9200:9200"
volumes:
- ./local-data/esdata:/usr/share/elasticsearch/data
extra_hosts:
- "host.docker.internal:host-gateway"
# logstash:
# build:
# context: .
# dockerfile: ./desci-elastic/Dockerfile-logstash
# volumes:
# - ./desci-elastic/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
# - ./local-data/logstash/drivers:/opt/logstash/drivers
# environment:
# - "LS_JAVA_OPTS=-Xms3g -Xmx4g"
# env_file:
# - .env
# extra_hosts:
# - "host.docker.internal:host-gateway"
# depends_on:
# - elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:8.14.3
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
ports:
- "5601:5601"
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- elasticsearch