fix(docker): share FASTAPI_BACKEND with the server

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-01 13:54:58 -07:00
parent dc397f6bd8
commit cdb854259a
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 4 additions and 1 deletions

View file

@ -165,6 +165,7 @@ services:
init: true
environment:
- AUR_CONFIG=conf/config
- FASTAPI_BACKEND=${FASTAPI_BACKEND}
- FASTAPI_WORKERS=${FASTAPI_WORKERS}
- AURWEB_FASTAPI_PREFIX=${AURWEB_FASTAPI_PREFIX}
- AURWEB_SSHD_PREFIX=${AURWEB_SSHD_PREFIX}

View file

@ -14,10 +14,12 @@ fi
# By default, set FASTAPI_WORKERS to 2. In production, this should
# be configured by the deployer.
if [ -z "$FASTAPI_WORKERS" ]; then
if [ -z ${FASTAPI_WORKERS+x} ]; then
FASTAPI_WORKERS=2
fi
export FASTAPI_BACKEND="$1"
echo "FASTAPI_BACKEND: $FASTAPI_BACKEND"
echo "FASTAPI_WORKERS: $FASTAPI_WORKERS"