Skip to content

Instantly share code, notes, and snippets.

@mhaagens
Created July 1, 2019 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhaagens/8732757f161538f8d38043fdb86d64ca to your computer and use it in GitHub Desktop.
Save mhaagens/8732757f161538f8d38043fdb86d64ca to your computer and use it in GitHub Desktop.
Elasticsearch + App Search
version: "3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
environment:
- cluster.name=elasticsearch-oss
- discovery.type=single-node
- cluster.routing.allocation.disk.threshold_enabled=false
- bootstrap.memory_lock=true
- http.cors.enabled=true
- http.cors.allow-origin=*
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./docker/elasticsearch/data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
app_search:
image: docker.elastic.co/app-search/app-search:7.2.0
depends_on:
- elasticsearch
environment:
- elasticsearch.host=http://elasticsearch:9200
- allow_es_settings_modification=true
- secret_session_key=${APP_SEARCH_SESSION_KEY}
ports:
- 3002:3002
- 5000:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment