Skip to content

Instantly share code, notes, and snippets.

@ivanfoong
Created December 1, 2021 12:48
Show Gist options
  • Save ivanfoong/609fa94e6dbc68874694d6332eaf6683 to your computer and use it in GitHub Desktop.
Save ivanfoong/609fa94e6dbc68874694d6332eaf6683 to your computer and use it in GitHub Desktop.
Elasticsearch docker compose
version: '3.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.2
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTIC_PASSWORD: changeme
discovery.type: single-node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment