Skip to content

Instantly share code, notes, and snippets.

@CoskunKurtuldu
Created March 28, 2021 15:02
Show Gist options
  • Save CoskunKurtuldu/8eae4e7b2d685f643ed6c9ad380afc8f to your computer and use it in GitHub Desktop.
Save CoskunKurtuldu/8eae4e7b2d685f643ed6c9ad380afc8f to your computer and use it in GitHub Desktop.
version: '3.1'
services:
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.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.11.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