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 33566b0 commit 0c82c30
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,30 @@ directly accessible. The port 9200 and 9300 are untouched.
## docker-compose usage example

```yaml
elasticsearch:
image: hausgold/elasticsearch
environment:
# Mind the .local suffix
MDNS_HOSTNAME=elasticsearch.test.local
ES_JAVA_OPTS: -Xms96m -Xmx96m
discovery.type: single-node
ports:
# The ports are just for you to know when configure your
# container links, on depended containers
- "9200"
- "9300"
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:
elasticsearch:
image: hausgold/elasticsearch
environment:
# Mind the .local suffix
MDNS_HOSTNAME=elasticsearch.test.local
ES_JAVA_OPTS: -Xms128m -Xmx128m
discovery.type: single-node
ports:
# The ports are just for you to know when configure your
# container links, on depended containers
- "9200"
- "9300"
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 0c82c30

Please sign in to comment.