docker entrypoint: make DB_* optional

This commit is contained in:
pedro 2024-11-26 12:47:15 +01:00 committed by Cayo Puigdefabregas
parent 8b4d1f51f6
commit d0cac9d1d9

View file

@ -53,10 +53,10 @@ END
# generate config using env vars from docker # generate config using env vars from docker
cat > .env <<END cat > .env <<END
${dpp_env_vars:-} ${dpp_env_vars:-}
DB_USER='${DB_USER}' DB_USER='${DB_USER:-}'
DB_PASSWORD='${DB_PASSWORD}' DB_PASSWORD='${DB_PASSWORD:-}'
DB_HOST='${DB_HOST}' DB_HOST='${DB_HOST:-}'
DB_DATABASE='${DB_DATABASE}' DB_DATABASE='${DB_DATABASE:-}'
URL_MANUALS='${URL_MANUALS:-}' URL_MANUALS='${URL_MANUALS:-}'
HOST='${HOST}' HOST='${HOST}'