-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (41 loc) · 993 Bytes
/
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
version: "2"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.2
restart: always
environment:
- cluster.name=docker-cluster
- discovery.type=single-node
- http.port=9200
- transport.port=9300
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- "9200:9200"
- "9300:9300"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./data:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:7.3.2
restart: always
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
ports:
- 5601:5601
elasticsearch-mapping-init:
build: .
depends_on:
- elasticsearch
- kibana
environment:
- ELASTICSEARCH_ENVS=dev uat prod
- ELASTICSEARCH_URL=elasticsearch:9200
volumes:
- ./mapping.json:/mapping.json
restart: on-failure
links:
- elasticsearch