-
Notifications
You must be signed in to change notification settings - Fork 73
/
docker-compose.opensearch.yaml
35 lines (33 loc) · 1.25 KB
/
docker-compose.opensearch.yaml
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
version: "3.2"
services:
data-prepper:
restart: unless-stopped
image: opensearchproject/data-prepper:2.3.0
volumes:
- ./local-config/opensearch/opensearch-analytics.yaml:/usr/share/data-prepper/pipelines.yaml
- ./local-config/opensearch/opensearch-data-prepper-config.yaml:/usr/share/data-prepper/data-prepper-config.yaml
depends_on:
- "opensearch"
opensearch:
image: opensearchproject/opensearch:2.3.0
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
volumes:
- ./local-config/opensearch/opensearch.yaml:/usr/share/opensearch/config/opensearch.yml
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 65536
dashboards:
image: opensearchproject/opensearch-dashboards:2.3.0
environment:
OPENSEARCH_HOSTS: '["http://opensearch:9200"]'
OPENSEARCH_USERNAME: admin
OPENSEARCH_PASSWORD: admin
depends_on:
- opensearch