forked from IsmailKattan/Notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (31 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
34 lines (31 loc) · 1.32 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
services:
opensearch:
image: opensearchproject/opensearch:3.4.0
container_name: opensearch-hybrid
environment:
- cluster.name=opensearch-cluster # cluster is a group of nodes that work together to store and search data
- node.name=opensearch-node1 # node is a single instance of the opensearch cluster
- discovery.type=single-node
- bootstrap.memory_lock=true # lock the memory to the opensearch cluster
- plugins.security.disabled=true # disable the security plugin
- DISABLE_INSTALL_DEMO_CONFIG=true # disable the demo config
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m # set the java options
ulimits:
memlock:
soft: -1 # soft limit is the maximum amount of memory that can be locked
hard: -1 # hard limit is the maximum amount of memory that can be locked
nofile:
soft: 65536 # soft limit is the maximum number of open files
hard: 65536 # hard limit is the maximum number of open files
ports:
- "9200:9200" # port is the port that the opensearch cluster will listen on
- "9600:9600"
volumes:
- opensearch-data:/usr/share/opensearch/data # volume is a directory that will be used to store the opensearch data
networks:
- opensearch-net
networks:
opensearch-net:
driver: bridge
volumes:
opensearch-data: