Skip to content

Instantly share code, notes, and snippets.

@itwars
Created October 2, 2019 11:21
Show Gist options
  • Save itwars/74c440cbbccb04a487381d3cb842de03 to your computer and use it in GitHub Desktop.
Save itwars/74c440cbbccb04a487381d3cb842de03 to your computer and use it in GitHub Desktop.
elasticsearch:
image: elasticsearch:6.7.2
container_name: elasticsearch
volumes:
- es_data:/usr/share/elasticsearch/data
# - ${DATA_PATH}/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
# - ${DATA_PATH}/elasticsearch/config/jvm.options:/usr/share/elasticsearch/config/jvm.options
# - ${DATA_PATH}/elasticsearch/config/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties
environment:
- cluster.name=mnx
- bootstrap.memory_lock=true
- discovery.type=single-node
- http.cors.enabled=true
- http.cors.allow-origin=*
- http.cors.allow-headers=*
- http.cors.allow-credentials=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- 9200:9200
- 9300:9300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment