Created
January 21, 2021 20:11
-
-
Save Bhacaz/eb54c1cf3dd42adc842c96b225e0fcff to your computer and use it in GitHub Desktop.
Docker compose to run ElasticSearch and Kibana with Docker.
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
version: '2.2' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2 | |
environment: | |
- node.name=elasticsearch | |
- discovery.type=single-node | |
- xpack.security.enabled=false | |
- xpack.monitoring.enabled=false | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ports: | |
- "9200:9200" | |
- "9300:9300" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
networks: | |
- esnet | |
kibana: | |
image: docker.elastic.co/kibana/kibana:7.10.2 | |
container_name: kibana | |
ports: | |
- "5601:5601" | |
networks: | |
- esnet | |
volumes: | |
esdata: | |
driver: local | |
networks: | |
esnet: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment