Set home path for PHP when supervisor boots

This commit is contained in:
David Bomba
2024-11-26 08:31:18 +11:00
parent 53cadbf750
commit d1786100ca
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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]