Skip to content

Instantly share code, notes, and snippets.

@awswithdotnet
Created March 8, 2022 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awswithdotnet/3bb62bc93a84f625f71c6bff3a79601f to your computer and use it in GitHub Desktop.
Save awswithdotnet/3bb62bc93a84f625f71c6bff3a79601f to your computer and use it in GitHub Desktop.
elasticsearch docker-compose
version: "3.5"
services:
elasticsearch-local:
image: "docker.elastic.co/elasticsearch/elasticsearch:7.12.1"
container_name: elasticsearch-local
environment:
- discovery.type=single-node
volumes:
- ~/docker-volumes/elasticsearch:/usr/share/elasticsearch/data
ports:
- 9200:9200
kibana-local:
image: "docker.elastic.co/kibana/kibana:7.12.0"
container_name: kibana-local
environment:
SERVER_NAME: "kibana.example.org"
ELASTICSEARCH_HOSTS: "http://elasticsearch-local:9200"
ports:
- 5601:5601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment