From d5745a8f9673245eed61025c0048411848271051 Mon Sep 17 00:00:00 2001 From: kompotkot Date: Wed, 1 Dec 2021 20:40:43 +0000 Subject: [PATCH] In var generate brood and spire uri to work with container --- backend/configs/docker_generate_env.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/configs/docker_generate_env.bash b/backend/configs/docker_generate_env.bash index ad8cd427..f3db3b53 100755 --- a/backend/configs/docker_generate_env.bash +++ b/backend/configs/docker_generate_env.bash @@ -30,6 +30,8 @@ set -e SCRIPT_DIR="$(realpath $(dirname $0))" DOCKER_MOONSTREAM_DB_URI="postgresql://postgres:postgres@db/$FLAG_DATABASE_NAME" DOCKER_MOONSTREAM_ENV_FILE="docker.moonstreamapi.env" +BUGOUT_BROOD_URL="http://brood:7474" +BUGOUT_SPIRE_URL="http://spire:7475" # Generate environment variables @@ -40,3 +42,5 @@ sed --in-place 's|^export * ||' "$SCRIPT_DIR/$DOCKER_MOONSTREAM_ENV_FILE" sed --in-place 's|"||g' "$SCRIPT_DIR/$DOCKER_MOONSTREAM_ENV_FILE" sed -i "s|^MOONSTREAM_DB_URI=.*|MOONSTREAM_DB_URI=$DOCKER_MOONSTREAM_DB_URI|" "$SCRIPT_DIR/$DOCKER_MOONSTREAM_ENV_FILE" +sed -i "s|^BUGOUT_BROOD_URL=.*|BUGOUT_BROOD_URL=$BUGOUT_BROOD_URL|" "$SCRIPT_DIR/$DOCKER_MOONSTREAM_ENV_FILE" +sed -i "s|^BUGOUT_SPIRE_URL=.*|BUGOUT_SPIRE_URL=$BUGOUT_SPIRE_URL|" "$SCRIPT_DIR/$DOCKER_MOONSTREAM_ENV_FILE"