-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-es.yml
More file actions
50 lines (46 loc) · 1.25 KB
/
docker-compose-es.yml
File metadata and controls
50 lines (46 loc) · 1.25 KB
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: '2.4'
services:
elasticsearch:
image: amazon/opendistro-for-elasticsearch:1.13.3
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65535
hard: 65535
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
healthcheck:
test: ["CMD", "curl", "-XGET", "https://localhost:9200", "-u", "admin:admin", "--insecure"]
interval: 5s
timeout: 10s
retries: 5
analytics:
env_file: env.docker
depends_on:
kafka:
condition: service_healthy
elasticsearch:
condition: service_healthy
restart: on-failure
volumes:
- ${PWD}/:/app
kafka:
environment:
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9103,EXTERNAL://kafka:9092,,INTERNAL://kafka:19092
nglp-events-consumer:
env_file: env.docker
restart: on-failure
volumes:
- ${PWD}/:/app
nglp-oids-consumer:
env_file: env.docker
restart: on-failure
volumes:
- ${PWD}/:/app