kopia lustrzana https://github.com/bugout-dev/moonstream
In var generate brood and spire uri to work with container
rodzic
051d97b23b
commit
d5745a8f96
|
@ -30,6 +30,8 @@ set -e
|
||||||
SCRIPT_DIR="$(realpath $(dirname $0))"
|
SCRIPT_DIR="$(realpath $(dirname $0))"
|
||||||
DOCKER_MOONSTREAM_DB_URI="postgresql://postgres:postgres@db/$FLAG_DATABASE_NAME"
|
DOCKER_MOONSTREAM_DB_URI="postgresql://postgres:postgres@db/$FLAG_DATABASE_NAME"
|
||||||
DOCKER_MOONSTREAM_ENV_FILE="docker.moonstreamapi.env"
|
DOCKER_MOONSTREAM_ENV_FILE="docker.moonstreamapi.env"
|
||||||
|
BUGOUT_BROOD_URL="http://brood:7474"
|
||||||
|
BUGOUT_SPIRE_URL="http://spire:7475"
|
||||||
|
|
||||||
# Generate environment variables
|
# 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 --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|^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"
|
||||||
|
|
Ładowanie…
Reference in New Issue