Created
February 22, 2022 07:56
-
-
Save Stephanvs/f1cc77d198ca8c16a2c7fca8d3ca791b to your computer and use it in GitHub Desktop.
Docker Compose for Elastic Search
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' | |
services: | |
elasticsearch: | |
image: elasticsearch:7.1.0 | |
ports: | |
- '9200:9200' | |
- '9300:9300' | |
environment: | |
- discovery.type=single-node | |
volumes: | |
- esdata1:/usr/share/elasticsearch/data | |
kibana: | |
image: kibana:7.1.0 | |
depends_on: | |
- elasticsearch | |
ports: | |
- '5601:5601' | |
environment: | |
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200 | |
volumes: | |
esdata1: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment