Skip to content

Instantly share code, notes, and snippets.

@vhxs
Created June 25, 2022 15:31
Show Gist options
  • Save vhxs/242368412412e4b7ce8f305a72ce51b9 to your computer and use it in GitHub Desktop.
Save vhxs/242368412412e4b7ce8f305a72ce51b9 to your computer and use it in GitHub Desktop.
Minimal working example of setting up elasticsearch and kibana with a docker compose script
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.2.3
volumes:
- data:/usr/share/elasticsearch/data
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ports:
- 9200:9200
- 9300:9300
kibana:
image: docker.elastic.co/kibana/kibana:8.2.3
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
ports:
- 5601:5601
volumes:
data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment