Skip to content

Commit

Permalink
Add Warden OpenSearch support
Browse files Browse the repository at this point in the history
  • Loading branch information
navarr committed Jan 17, 2023
1 parent 2f98bf6 commit 2bd9545
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/env.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ fi
[[ ${WARDEN_ELASTICSEARCH} -eq 1 ]] \
&& appendEnvPartialIfExists "elasticsearch"

[[ ${WARDEN_OPENSEARCH} -eq 1 ]] \
&& appendEnvPartialIfExists "opensearch"

[[ ${WARDEN_VARNISH} -eq 1 ]] \
&& appendEnvPartialIfExists "varnish"

Expand Down
20 changes: 20 additions & 0 deletions environments/includes/opensearch.base.yml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit 2bd9545

Please sign in to comment.