diff --git a/etc/supervisor/conf.d/logging.conf.tmpl b/etc/supervisor/conf.d/logging.conf.tmpl index 05c6b57..0961326 100644 --- a/etc/supervisor/conf.d/logging.conf.tmpl +++ b/etc/supervisor/conf.d/logging.conf.tmpl @@ -19,6 +19,7 @@ environment=VECTOR_MARKER="{{ getenv "VECTOR_MARKER" "" }}",VECTOR_COLOR=never [eventlistener:rotate_logs] command=/etc/supervisor/rotate-logs +user=vector events=TICK_60 autorestart=true buffer_size=1 diff --git a/etc/supervisor/conf.d/web.conf.tmpl b/etc/supervisor/conf.d/web.conf.tmpl index fa33554..e4dec49 100644 --- a/etc/supervisor/conf.d/web.conf.tmpl +++ b/etc/supervisor/conf.d/web.conf.tmpl @@ -3,6 +3,8 @@ command=/usr/sbin/nginx -g "daemon off;" autostart={{ getenv "SVC_NGINX_ENABLED" "false" | ternary "true" "false" }} autorestart=true exitcodes=0 +user=dp_app +group=dp_app startsecs=1 startretries=3 redirect_stderr=true @@ -22,6 +24,8 @@ command=/usr/sbin/php-fpm8.3 -F autostart={{ getenv "SVC_PHP_FPM_ENABLED" "false" | ternary "true" "false" }} autorestart=true exitcodes=0 +user=dp_app +group=dp_app startsecs=1 startretries=3 redirect_stderr=true