Skip to content

Instantly share code, notes, and snippets.

@arsalanses
Created January 30, 2024 13:48
Show Gist options
  • Select an option

  • Save arsalanses/0ebf344591d618fde2cee8a90e8b1d38 to your computer and use it in GitHub Desktop.

Select an option

Save arsalanses/0ebf344591d618fde2cee8a90e8b1d38 to your computer and use it in GitHub Desktop.
elasticsearch
services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.4
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.enforce.bootstrap.checks=true"
- "xpack.license.self_generated.type=basic"
- "xpack.security.enabled=false"
- "xpack.watcher.enabled=false"
- "xpack.graph.enabled=false"
- "xpack.ml.enabled=false"
- "bootstrap.memory_lock=true"
- "cluster.name=es-efk"
- "discovery.type=single-node"
- "thread_pool.write.queue_size=1000"
networks:
- internal
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
volumes:
- elasticsearch:/usr/share/elasticsearch/data
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- '9200:9200'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment