From 4b740094c13a00278978a42e93632470bb2d8d4f Mon Sep 17 00:00:00 2001 From: Denis Valdenaire Date: Mon, 22 Jan 2024 12:16:42 +0100 Subject: [PATCH] Update start.sh Permit the usage of a DATABASE_URL_PARAM_FILE variable, pointing to a file containing the actual DATABASE_URL. --- docker/start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/start.sh b/docker/start.sh index e9a932e4..6391d83e 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -22,4 +22,9 @@ elif [ -d /etc/bitwarden_rs.d ]; then done fi +# if you define this variable in the docker-compose.yml, it will overload the current DATABASE_URL variable +if [ "$DATABASE_URL_PARAM_FILE" != "" ]; then + export DATABASE_URL=`cat $DATABASE_URL_PARAM_FILE` +fi + exec /vaultwarden "${@}"