From 73cde66c9ab0bcae733097e53f1b6c4f00a8ea86 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 20 May 2020 17:05:36 -0700 Subject: working docker-compose with elasticsearch (with plugins) --- extra/docker/docker-compose.yml | 15 +++++++++++++++ extra/docker/elasticsearch/Dockerfile | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100644 extra/docker/docker-compose.yml create mode 100644 extra/docker/elasticsearch/Dockerfile diff --git a/extra/docker/docker-compose.yml b/extra/docker/docker-compose.yml new file mode 100644 index 0000000..514aefe --- /dev/null +++ b/extra/docker/docker-compose.yml @@ -0,0 +1,15 @@ +version: '2' +services: + elasticsearch: + build: ./elasticsearch/ + ports: + - "9200:9200" + - "9300:9300" + environment: + cluster.name: "docker-cluster" + bootstrap.memory_lock: "true" + discovery.type: "single-node" + cluster.routing.allocation.disk.watermark.low: "500mb" + cluster.routing.allocation.disk.watermark.high: "500mb" + cluster.routing.allocation.disk.watermark.flood_stage: "100mb" + ES_JAVA_OPTS: "-Xms512m -Xmx512m" diff --git a/extra/docker/elasticsearch/Dockerfile b/extra/docker/elasticsearch/Dockerfile new file mode 100644 index 0000000..13d641a --- /dev/null +++ b/extra/docker/elasticsearch/Dockerfile @@ -0,0 +1,9 @@ +FROM docker.elastic.co/elasticsearch/elasticsearch:6.4.2 + +RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch analysis-icu + +# This part doesn't work because elastic isn't actually running at this point +# in boot. Don't know enough Docker to figure out how to make this work at +# build time. +#COPY --chown=elasticsearch:elasticsearch release_schema.json /release_schema.json +#RUN curl http://127.0.0.1:9200/fatcat --upload-file /release_schema.json -- cgit v1.2.3