Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brandon-braner/2f16d75c6df2d21ace101c46820b0cfd to your computer and use it in GitHub Desktop.
Save brandon-braner/2f16d75c6df2d21ace101c46820b0cfd to your computer and use it in GitHub Desktop.
ElasticSearch Docker Compose
version: '3'
services:
node1:
image: docker.elastic.co/elasticsearch/elasticsearch:7.12.1
container_name: node1-7.12.1
environment:
- node.name=node1
- cluster.name=elasticsearch-first-steps
- discovery.type=single-node
- bootstrap.memory_lock=true
- path.repo=/usr/share/elasticsearch/backups
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- node1-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elasticsearch-first-steps
kibana:
image: docker.elastic.co/kibana/kibana:7.12.1
container_name: kibana-7.12.1
environment:
- elasticsearch.url=http://elasticsearch:9200
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 5601:5601
networks:
- elasticsearch-first-steps
links:
- node1:elasticsearch
volumes:
node1-data:
driver: local
networks:
elasticsearch-first-steps:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment