-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.17 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
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.20
container_name: elasticsearch
restart: on-failure
tty: true
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data:/usr/share/elasticsearch/data
- ./setup_docker_es.sh:/setup_docker_es.sh
post_start:
- command: bash -i /setup_docker_es.sh
user: root
privileged: true
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:9200 >/dev/null 2>&1"]
interval: 10s
timeout: 10s
retries: 5
ports:
- 9200:9200
networks:
- elastic
kibana:
container_name: kibana
depends_on:
elasticsearch:
condition: service_healthy
image: docker.elastic.co/kibana/kibana:7.17.20
environment:
- ELASTICSEARCH_URL="http://elasticsearch:9200"
- DISABLE_SECURITY_DASHBOARDS_PLUGIN="true"
ports:
- 5601:5601
networks:
- elastic
volumes:
es-data:
driver: local
networks:
elastic:
driver: bridge