Created
August 13, 2021 23:58
-
-
Save baiyongzhen/938cd5eb5530ec2e75aad87e3535543e 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 | |
- opendistro_security.disabled=true | |
- 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 | |
build: | |
context: . | |
container_name: odfe-kibana | |
ports: | |
- 5601:5601 | |
expose: | |
- "5601" | |
environment: | |
ELASTICSEARCH_URL: http://odfe-node1:9200 | |
ELASTICSEARCH_HOSTS: http://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