From 2bd95457748c1d639dc6109018d963ff624137ac Mon Sep 17 00:00:00 2001 From: Navarr Barnier Date: Mon, 16 Jan 2023 22:53:30 -0500 Subject: [PATCH] Add Warden OpenSearch support --- commands/env.cmd | 3 +++ environments/includes/opensearch.base.yml | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 environments/includes/opensearch.base.yml diff --git a/commands/env.cmd b/commands/env.cmd index e10030fa..a583fc46 100644 --- a/commands/env.cmd +++ b/commands/env.cmd @@ -77,6 +77,9 @@ fi [[ ${WARDEN_ELASTICSEARCH} -eq 1 ]] \ && appendEnvPartialIfExists "elasticsearch" +[[ ${WARDEN_OPENSEARCH} -eq 1 ]] \ + && appendEnvPartialIfExists "opensearch" + [[ ${WARDEN_VARNISH} -eq 1 ]] \ && appendEnvPartialIfExists "varnish" diff --git a/environments/includes/opensearch.base.yml b/environments/includes/opensearch.base.yml new file mode 100644 index 00000000..7146824e --- /dev/null +++ b/environments/includes/opensearch.base.yml @@ -0,0 +1,20 @@ +version: "3.5" +services: + opensearch: + hostname: "${WARDEN_ENV_NAME}-opensearch" + image: ${WARDEN_IMAGE_REPOSITORY}/opensearch:${OPENSEARCH_VERSION:-1.2} + labels: + - traefik.enable=true + - traefik.http.routers.${WARDEN_ENV_NAME}-opensearch.tls=true + - traefik.http.routers.${WARDEN_ENV_NAME}-opensearch.rule=Host(`opensearch.${TRAEFIK_DOMAIN}`) + - traefik.http.services.${WARDEN_ENV_NAME}-opensearch.loadbalancer.server.port=9200 + - traefik.docker.network=${WARDEN_ENV_NAME}_default + environment: + - DISABLE_SECURITY_PLUGIN=true + - discovery.type=single-node + - "ES_JAVA_OPTS=-Xms64m -Xmx512m" + volumes: + - osdata:/usr/share/opensearch/data + +volumes: + osdata: \ No newline at end of file