diff --git a/Dockerfile b/Dockerfile index c425873..d5a2c96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,5 @@ RUN \ chmod -R 777 /var/lib/tt-rss/lock RUN adduser -D ttrss -USER ttrss CMD supervisord -c /var/lib/tt-rss-install/supervisor.conf diff --git a/supervisor.conf b/supervisor.conf index e73b724..e1dafea 100644 --- a/supervisor.conf +++ b/supervisor.conf @@ -1,5 +1,6 @@ [supervisord] nodaemon=true +user=root logfile=/tmp/supervisord.log pidfile=/tmp/supervisord.pid @@ -12,6 +13,7 @@ stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 [program:php-fpm] +user=ttrss command=/usr/sbin/php-fpm7 -F autorestart=true stdout_logfile=/dev/stdout @@ -20,6 +22,7 @@ stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 [eventlistener:feed-update] +user=ttrss command=/usr/bin/php7 -r 'while (true) { print("READY\n"); readline(); passthru("/usr/bin/php7 /var/lib/tt-rss/update.php --daemon-loop"); print("RESULT 2\nOK\n"); }' events=TICK_60 autorestart=true