Skip to content

Instantly share code, notes, and snippets.

@book000
Last active May 10, 2023 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save book000/2358c7db69e34442051c268a34245830 to your computer and use it in GitHub Desktop.
Save book000/2358c7db69e34442051c268a34245830 to your computer and use it in GitHub Desktop.
Docker Compose file for elasticsearch & kibana
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.1
environment:
- discovery.type=single-node
- LOGSPOUT=ignore
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- xpack.watcher.enabled=false
- xpack.graph.enabled=false
volumes:
- type: bind
source: ./es-data
target: /usr/share/elasticsearch/data
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
healthcheck:
interval: 20s
retries: 10
test: curl -s http://localhost:9200/_cluster/health | grep -vq '"status":"red"'
restart: always
kibana:
image: docker.elastic.co/kibana/kibana:7.13.1
depends_on:
elasticsearch:
condition: service_healthy
ports:
- "5601:5601"
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment