Created
June 7, 2020 21:22
-
-
Save tregoning/5d834758aacb13b737d70becf7a5963d to your computer and use it in GitHub Desktop.
Minimalistic setup for Elastic on Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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