Skip to content

Instantly share code, notes, and snippets.

@tregoning
Created June 7, 2020 21:22
Show Gist options
  • Save tregoning/5d834758aacb13b737d70becf7a5963d to your computer and use it in GitHub Desktop.
Save tregoning/5d834758aacb13b737d70becf7a5963d to your computer and use it in GitHub Desktop.
Minimalistic setup for Elastic on Docker
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.1 # Latest version at: https://www.docker.elastic.co/
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65535
hard: 65535
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
volumes:
elasticsearch-data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment