Skip to content

Instantly share code, notes, and snippets.

@szydan
Forked from fpompermaier/docker-compose.yml
Created December 11, 2023 16:57
Show Gist options
  • Save szydan/569931334e806c66ebd5b3d3e1c6ff70 to your computer and use it in GitHub Desktop.
Save szydan/569931334e806c66ebd5b3d3e1c6ff70 to your computer and use it in GitHub Desktop.
Federate plugin on standalone ES docker-compose.yml
services:
federate:
image: "docker.elastic.co/elasticsearch/elasticsearch:8.11.1"
user: elasticsearch
ports:
- "5005:5005"
- "9200:9200"
volumes:
# - ./plugin.zip:/tmp/plugin.zip
# - /home/flavio/git/siren-platform/core/target/releases/siren-federate-8.11.1-34.0-SNAPSHOT-plugin.zip:/tmp/plugin.zip
- /home/flavio/git/siren-platform/core/target/releases/siren-federate-8.11.1-34.0-SNAPSHOT-proguard-plugin.zip:/tmp/plugin.zip
# - /home/flavio/git/siren-platform-17/core/target/releases/siren-federate-8.11.1-34.0-SNAPSHOT-proguard-plugin.zip:/tmp/plugin.zip
environment:
- "ES_JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
command:
- /bin/sh
- -c
- "./bin/elasticsearch-plugin list | grep -q siren-federate || ./bin/elasticsearch-plugin install --batch file:///tmp/plugin.zip; /usr/local/bin/docker-entrypoint.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment