Last active
March 18, 2022 01:13
-
-
Save therusetiawan/efc53b60e38aff182dd72b03a9b53f68 to your computer and use it in GitHub Desktop.
Setup ElasticSearch and Kibana using docker-compose
This file contains hidden or 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.0" | |
| services: | |
| elasticsearch: | |
| container_name: es-container | |
| image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0 | |
| environment: | |
| - xpack.security.enabled=false | |
| - "discovery.type=single-node" | |
| networks: | |
| - es-net | |
| ports: | |
| - 9200:9200 | |
| kibana: | |
| container_name: kb-container | |
| image: docker.elastic.co/kibana/kibana:7.11.0 | |
| environment: | |
| - ELASTICSEARCH_HOSTS=http://es-container:9200 | |
| networks: | |
| - es-net | |
| depends_on: | |
| - elasticsearch | |
| ports: | |
| - 5601:5601 | |
| mongodb: | |
| container_name: mongo-container | |
| image: mongo:5.0 | |
| ports: | |
| - 27017:27017 | |
| volumes: | |
| - ~/apps/mongo:/data/db | |
| networks: | |
| - es-net | |
| networks: | |
| es-net: | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment