From d390005c5c7d357732855bdbfa3a0859e4689d91 Mon Sep 17 00:00:00 2001 From: Florian Gabsteiger Date: Sat, 21 Sep 2019 15:45:10 +0200 Subject: [PATCH] Enable user-controlled gunicorn options in docker-compose file --- scripts/docker-entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index 8e6b819e0..14f431b64 100644 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -100,8 +100,9 @@ if [[ "$1" != "/"* ]]; then fi if [[ "$1" = "gunicorn" ]]; then + shift cd /usr/src/paperless/src/ && \ - exec sudo -HEu paperless /usr/bin/gunicorn -c /usr/src/paperless/gunicorn.conf paperless.wsgi + exec sudo -HEu paperless /usr/bin/gunicorn -c /usr/src/paperless/gunicorn.conf "$@" paperless.wsgi else exec sudo -HEu paperless "/usr/src/paperless/src/manage.py" "$@" fi