From 5c4c5a77940a63f675896ee4371ed861d471e2dd Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 20 Jun 2023 07:49:13 -0700 Subject: [PATCH] Explicitly set some environment for each supervised program, as it is not updated by supervisord --- docker/supervisord.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/supervisord.conf b/docker/supervisord.conf index 69b7879b9..009760771 100644 --- a/docker/supervisord.conf +++ b/docker/supervisord.conf @@ -15,6 +15,7 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 +environment = HOME="/usr/src/paperless",USER="paperless" [program:consumer] command=python3 manage.py document_consumer @@ -25,6 +26,7 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 +environment = HOME="/usr/src/paperless",USER="paperless" [program:celery] @@ -37,6 +39,7 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 +environment = HOME="/usr/src/paperless",USER="paperless" [program:celery-beat] @@ -48,6 +51,7 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 +environment = HOME="/usr/src/paperless",USER="paperless" [program:celery-flower] command = /usr/local/bin/flower-conditional.sh @@ -58,3 +62,4 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 +environment = HOME="/usr/src/paperless",USER="paperless"