Last active
August 14, 2021 00:17
-
-
Save baiyongzhen/bbfd431858a03870cb5ad5900afdeaf8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
odfe-node1: | |
image: amazon/opendistro-for-elasticsearch:1.13.2 | |
container_name: odfe-node1 | |
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 50% of system RAM | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
nofile: | |
soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems | |
hard: 65536 | |
volumes: | |
- odfe-data1:/usr/share/elasticsearch/data | |
ports: | |
- 9200:9200 | |
- 9600:9600 # required for Performance Analyzer | |
networks: | |
- odfe-net | |
kibana: | |
image: amazon/opendistro-for-elasticsearch-kibana:1.13.2 | |
container_name: odfe-kibana | |
ports: | |
- 5601:5601 | |
expose: | |
- "5601" | |
environment: | |
ELASTICSEARCH_URL: https://odfe-node1:9200 | |
ELASTICSEARCH_HOSTS: https://odfe-node1:9200 | |
networks: | |
- odfe-net | |
volumes: | |
odfe-data1: | |
networks: | |
odfe-net: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
init