dedicated users
This commit is contained in:
@@ -42,6 +42,5 @@ RUN \
|
|||||||
chmod -R 777 /var/lib/tt-rss/lock
|
chmod -R 777 /var/lib/tt-rss/lock
|
||||||
|
|
||||||
RUN adduser -D ttrss
|
RUN adduser -D ttrss
|
||||||
USER ttrss
|
|
||||||
|
|
||||||
CMD supervisord -c /var/lib/tt-rss-install/supervisor.conf
|
CMD supervisord -c /var/lib/tt-rss-install/supervisor.conf
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[supervisord]
|
[supervisord]
|
||||||
nodaemon=true
|
nodaemon=true
|
||||||
|
user=root
|
||||||
logfile=/tmp/supervisord.log
|
logfile=/tmp/supervisord.log
|
||||||
pidfile=/tmp/supervisord.pid
|
pidfile=/tmp/supervisord.pid
|
||||||
|
|
||||||
@@ -12,6 +13,7 @@ stderr_logfile=/dev/stderr
|
|||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
|
|
||||||
[program:php-fpm]
|
[program:php-fpm]
|
||||||
|
user=ttrss
|
||||||
command=/usr/sbin/php-fpm7 -F
|
command=/usr/sbin/php-fpm7 -F
|
||||||
autorestart=true
|
autorestart=true
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
@@ -20,6 +22,7 @@ stderr_logfile=/dev/stderr
|
|||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
|
|
||||||
[eventlistener:feed-update]
|
[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"); }'
|
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
|
events=TICK_60
|
||||||
autorestart=true
|
autorestart=true
|
||||||
|
|||||||
Reference in New Issue
Block a user