From d1786100ca2afcec499ed97b42d3e5ab76519f91 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 26 Nov 2024 08:31:18 +1100 Subject: [PATCH] Set home path for PHP when supervisor boots --- debian/docker-compose.yml | 2 ++ debian/supervisor/supervisord.conf | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/docker-compose.yml b/debian/docker-compose.yml index b405bc4..8442269 100644 --- a/debian/docker-compose.yml +++ b/debian/docker-compose.yml @@ -14,6 +14,8 @@ services: - ./.env volumes: - ./.env:/var/www/html/.env + - ./php/php.ini:/usr/local/etc/php/php.ini + - ./supervisor/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf - app_storage:/var/www/html/storage - app_cache:/var/www/html/bootstrap/cache - image-public:/var/www/html/public:ro diff --git a/debian/supervisor/supervisord.conf b/debian/supervisor/supervisord.conf index 9370baf..02fea20 100644 --- a/debian/supervisor/supervisord.conf +++ b/debian/supervisor/supervisord.conf @@ -33,11 +33,9 @@ stopasgroup=true killasgroup=true user=www-data numprocs=2 -redirect_stderr=true -stdout_logfile=/dev/stdout -stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr -stderr_logfile_maxbytes=0 +environment=HOME="/var/www" +stdout_logfile=/var/log/php-worker.log +stderr_logfile=/var/log/php-worker.err.log stopwaitsecs=3600 [program:scheduler]