Created
February 3, 2021 02:07
-
-
Save Calabonga/dd50505f6987219f95d2c6cd0f19b8ce to your computer and use it in GitHub Desktop.
docker-compose ElasticeSearch and 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
version: '3.1' | |
services: | |
elasticsearch: | |
container_name: elasticsearch | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2 | |
ports: | |
- 9200:9200 | |
volumes: | |
- elasticsearch-data:/usr/share/elasticsearch/data | |
environment: | |
- xpack.monitoring.enabled=true | |
- xpack.watcher.enabled=false | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
- discovery.type=single-node | |
networks: | |
- elastic | |
kibana: | |
container_name: kibana | |
image: docker.elastic.co/kibana/kibana:7.9.2 | |
ports: | |
- 5601:5601 | |
depends_on: | |
- elasticsearch | |
environment: | |
- ELASTICSEARCH_URL=http://localhost:9200 | |
networks: | |
- elastic | |
networks: | |
elastic: | |
driver: bridge | |
volumes: | |
elasticsearch-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment