Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sravanthi17/d00254e9f02b58de5ff956382b92410f to your computer and use it in GitHub Desktop.
Save sravanthi17/d00254e9f02b58de5ff956382b92410f to your computer and use it in GitHub Desktop.
version: '3.1'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- http.cors.enabled=true
- http.cors.allow-origin="*"
- http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
- http.cors.allow-credentials=true
ports:
- 9200:9200
- 9300:9300
kibana:
image: docker.elastic.co/kibana/kibana:6.5.4
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
environment:
SERVER_HOST: 0.0.0.0
ELASTICSEARCH_URL: http://elasticsearch:9200
ports:
- "5601:5601"
- "8000:8000"
depends_on:
- elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment