Skip to content

Commit

Permalink
Updated the README file.
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann Mayer <[email protected]>
  • Loading branch information
Jack12816 committed Nov 13, 2024
1 parent 0e82d6b commit 8b849a4
Showing 1 changed file with 20 additions and 25 deletions.
45 changes: 20 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,26 @@ compatibility.override_main_response_version='true'
## docker-compose usage example

```yaml
opensearch:
image: hausgold/opensearch
environment:
# Mind the .local suffix
MDNS_HOSTNAME=opensearch.test.local
OPENSEARCH_JAVA_OPTS: -Xms96m -Xmx96m
discovery.type: single-node
compatibility.override_main_response_version: false
ports:
# The ports are just for you to know when configure your
# container links, on depended containers
- "9200"
- "9300"
- "9600"
ulimits:
# Due to systemd/pam RLIMIT_NOFILE settings (max int inside the
# container), the Java process seams to allocate huge limits which result
# in a +unable to allocate file descriptor table - out of memory+ error.
# Lowering this value fixes the issue for now.
#
# See: http://bit.ly/2U62A80
# See: http://bit.ly/2T2Izit
nofile:
soft: 100000
hard: 100000
services:
opensearch:
image: hausgold/opensearch
environment:
# Mind the .local suffix
MDNS_HOSTNAME=opensearch.test.local
OPENSEARCH_JAVA_OPTS: -Xms128m -Xmx128m
discovery.type: single-node
compatibility.override_main_response_version: false
ulimits:
# Due to systemd/pam RLIMIT_NOFILE settings (max int inside the
# container), the Java process seams to allocate huge limits which result
# in a +unable to allocate file descriptor table - out of memory+ error.
# Lowering this value fixes the issue for now.
#
# See: http://bit.ly/2U62A80
# See: http://bit.ly/2T2Izit
nofile:
soft: 100000
hard: 100000
```
## Host configs
Expand Down

0 comments on commit 8b849a4

Please sign in to comment.