-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (46 loc) · 1.07 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
version: '3.8'
services:
elasticsearch:
container_name: elasticsearch-demo
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
environment:
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.15.2
container_name: kibana-demo
environment:
ELASTICSEARCH_URL: http://yourip:9200
ELASTICSEARCH_HOSTS: http://yourip:9200
ports:
- 5601:5601
networks:
- elastic
logstash:
image: docker.elastic.co/logstash/logstash:7.15.2
container_name: logstash-demo
ports:
- "5044:5044"
volumes:
- ./logstash/conf.d/:/usr/share/logstash/pipeline/:ro
networks:
- elastic
volumes:
es-data:
driver: local
networks:
elastic:
driver: bridge