mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(docker): share FASTAPI_BACKEND with the server
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
dc397f6bd8
commit
cdb854259a
2 changed files with 4 additions and 1 deletions
|
@ -165,6 +165,7 @@ services:
|
||||||
init: true
|
init: true
|
||||||
environment:
|
environment:
|
||||||
- AUR_CONFIG=conf/config
|
- AUR_CONFIG=conf/config
|
||||||
|
- FASTAPI_BACKEND=${FASTAPI_BACKEND}
|
||||||
- FASTAPI_WORKERS=${FASTAPI_WORKERS}
|
- FASTAPI_WORKERS=${FASTAPI_WORKERS}
|
||||||
- AURWEB_FASTAPI_PREFIX=${AURWEB_FASTAPI_PREFIX}
|
- AURWEB_FASTAPI_PREFIX=${AURWEB_FASTAPI_PREFIX}
|
||||||
- AURWEB_SSHD_PREFIX=${AURWEB_SSHD_PREFIX}
|
- AURWEB_SSHD_PREFIX=${AURWEB_SSHD_PREFIX}
|
||||||
|
|
|
@ -14,10 +14,12 @@ fi
|
||||||
|
|
||||||
# By default, set FASTAPI_WORKERS to 2. In production, this should
|
# By default, set FASTAPI_WORKERS to 2. In production, this should
|
||||||
# be configured by the deployer.
|
# be configured by the deployer.
|
||||||
if [ -z "$FASTAPI_WORKERS" ]; then
|
if [ -z ${FASTAPI_WORKERS+x} ]; then
|
||||||
FASTAPI_WORKERS=2
|
FASTAPI_WORKERS=2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export FASTAPI_BACKEND="$1"
|
||||||
|
|
||||||
echo "FASTAPI_BACKEND: $FASTAPI_BACKEND"
|
echo "FASTAPI_BACKEND: $FASTAPI_BACKEND"
|
||||||
echo "FASTAPI_WORKERS: $FASTAPI_WORKERS"
|
echo "FASTAPI_WORKERS: $FASTAPI_WORKERS"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue