Skip to content

Instantly share code, notes, and snippets.

@wodsonluiz
Created June 8, 2022 15:07
Show Gist options
  • Save wodsonluiz/978a1f8e53546bba8795a83bfa7cf977 to your computer and use it in GitHub Desktop.
Save wodsonluiz/978a1f8e53546bba8795a83bfa7cf977 to your computer and use it in GitHub Desktop.
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.2
ports:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: "single-node"
ES_JAVA_OPTS: "-Xms2g -Xmx2g"
xpack.monitoring.enabled: "true"
volumes:
- ./esdata:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:7.4.2
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
depends_on:
- elasticsearch
volumes:
esdata:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment