Skip to content

Instantly share code, notes, and snippets.

@dineshsonachalam
Created January 15, 2019 14:00
Show Gist options
  • Save dineshsonachalam/743fb5237dedb60d65a065dcbffb18e8 to your computer and use it in GitHub Desktop.
Save dineshsonachalam/743fb5237dedb60d65a065dcbffb18e8 to your computer and use it in GitHub Desktop.
Elastic Search docker-compose file
version: '3'
services:
elasticsearch:
image: "elasticsearch:5"
networks:
- frontend
restart: always
volumes:
- ./ES_DATA:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- bootstrap.memory_lock = true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- "9200:9200"
networks:
frontend:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment