Skip to content

Instantly share code, notes, and snippets.

@AjayPoshak
Created July 6, 2024 12:01
Show Gist options
  • Save AjayPoshak/5b49aefd73c4b7bf2316206acfbd7c62 to your computer and use it in GitHub Desktop.
Save AjayPoshak/5b49aefd73c4b7bf2316206acfbd7c62 to your computer and use it in GitHub Desktop.
Docker compose setup for Elasticsearch and Kibana
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.1
container_name: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
- xpack.security.enabled=false
mem_limit: 1073741824 # 1 GB in bytes
kibana:
image: docker.elastic.co/kibana/kibana:8.14.1
container_name: kibana
ports:
- "5601:5601"
depends_on:
- elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment