Last active
May 10, 2023 02:17
-
-
Save book000/2358c7db69e34442051c268a34245830 to your computer and use it in GitHub Desktop.
Docker Compose file for elasticsearch & kibana
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
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