Skip to content

Instantly share code, notes, and snippets.

@Stephanvs
Created February 22, 2022 07:56
Show Gist options
  • Save Stephanvs/f1cc77d198ca8c16a2c7fca8d3ca791b to your computer and use it in GitHub Desktop.
Save Stephanvs/f1cc77d198ca8c16a2c7fca8d3ca791b to your computer and use it in GitHub Desktop.
Docker Compose for Elastic Search
version: '3'
services:
elasticsearch:
image: elasticsearch:7.1.0
ports:
- '9200:9200'
- '9300:9300'
environment:
- discovery.type=single-node
volumes:
- esdata1:/usr/share/elasticsearch/data
kibana:
image: kibana:7.1.0
depends_on:
- elasticsearch
ports:
- '5601:5601'
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
volumes:
esdata1:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment