Use Docker secrets (#340)

This commit is contained in:
Thomas Miceli
2024-09-28 01:31:18 +02:00
committed by GitHub
parent 56b4fd45fd
commit 41dc2e451b
7 changed files with 30 additions and 10 deletions

View File

@ -9,4 +9,10 @@ usermod -o -u "$UID" $USER
chown -R "$USER:$USER" /opengist
chown -R "$USER:$USER" /config.yml
if [ -f "/run/secrets/opengist_secrets" ]; then
set -a
. /run/secrets/opengist_secrets
set +a
fi
exec su $USER -c "OG_OPENGIST_HOME=/opengist /app/opengist/opengist --config /config.yml"