diff --git a/.env.sample b/.env.sample index 64d3cb5..8dcf810 100644 --- a/.env.sample +++ b/.env.sample @@ -84,6 +84,8 @@ M2_TIMEZONE="Europe/Madrid" M2_SEARCH_ENGINE=opensearch M2_SEARCH_ENGINE_HOST=opensearch +COMPOSE_PROFILES=$M2_SEARCH_ENGINE_HOST + M2_SEARCH_ENGINE_PORT=9200 M2_SEARCH_ENGINE_INDEX_PREFIX=m2 M2_SEARCH_ENGINE_TIMEOUT=60 diff --git a/setup.sh b/setup.sh index 0ea65b3..006e53e 100755 --- a/setup.sh +++ b/setup.sh @@ -85,12 +85,12 @@ if [ $ngrok -eq 1 ]; then echo "✅ Ngrok started. Public URL: $M2_URL" fi -search_engine_profile="elasticsearch" -if [ "$M2_SEARCH_ENGINE_HOST" == 'opensearch' ]; then - search_engine_profile="opensearch" -fi +# search_engine_profile="elasticsearch" +# if [ "$M2_SEARCH_ENGINE_HOST" == 'opensearch' ]; then +# search_engine_profile="opensearch" +# fi -docker compose --profile "$search_engine_profile" up -d || exit 1 +docker compose up -d || exit 1 echo "🚀 Waiting for installation to complete..." diff --git a/teardown.sh b/teardown.sh index 604aa5b..65bf121 100755 --- a/teardown.sh +++ b/teardown.sh @@ -3,10 +3,10 @@ set -o allexport source .env set +o allexport -search_engine_profile="elasticsearch" -if [ "$M2_SEARCH_ENGINE_HOST" == 'opensearch' ]; then - search_engine_profile="opensearch" -fi +# search_engine_profile="elasticsearch" +# if [ "$M2_SEARCH_ENGINE_HOST" == 'opensearch' ]; then +# search_engine_profile="opensearch" +# fi -docker compose --profile "$search_engine_profile" down --volumes --remove-orphans +docker compose down --volumes --remove-orphans docker rm -f $NGROK_CONTAINER_NAME || true \ No newline at end of file