Skip to content

Instantly share code, notes, and snippets.

@baiyongzhen
Last active August 14, 2021 00:17
Show Gist options
  • Save baiyongzhen/bbfd431858a03870cb5ad5900afdeaf8 to your computer and use it in GitHub Desktop.
Save baiyongzhen/bbfd431858a03870cb5ad5900afdeaf8 to your computer and use it in GitHub Desktop.
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:
@baiyongzhen
Copy link
Author

init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment