dedicated user

This commit is contained in:
2018-12-15 11:34:00 +01:00
parent 4e84cc8f10
commit 752c89f863
2 changed files with 4 additions and 5 deletions

View File

@@ -41,4 +41,7 @@ RUN \
chmod -R 777 /var/lib/tt-rss/feed-icons && \ chmod -R 777 /var/lib/tt-rss/feed-icons && \
chmod -R 777 /var/lib/tt-rss/lock chmod -R 777 /var/lib/tt-rss/lock
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

View File

@@ -1,12 +1,10 @@
[supervisord] [supervisord]
nodaemon=true nodaemon=true
user=nginx
logfile=/tmp/supervisord.log logfile=/tmp/supervisord.log
pidfile=/tmp/supervisord.pid pidfile=/tmp/supervisord.pid
[program:nginx] [program:nginx]
command=/usr/sbin/nginx -g "daemon off;" command=/usr/sbin/nginx -g "daemon off;"
autostart=true
autorestart=true autorestart=true
stdout_logfile=/dev/stdout stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0
@@ -15,7 +13,6 @@ stderr_logfile_maxbytes=0
[program:php-fpm] [program:php-fpm]
command=/usr/sbin/php-fpm7 -F command=/usr/sbin/php-fpm7 -F
autostart=true
autorestart=true autorestart=true
stdout_logfile=/dev/stdout stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0
@@ -25,7 +22,6 @@ stderr_logfile_maxbytes=0
[eventlistener:feed-update] [eventlistener:feed-update]
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
autostart=true
autorestart=true autorestart=true
stdout_logfile=/dev/stdout stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0
@@ -33,5 +29,5 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0 stderr_logfile_maxbytes=0
[eventlistener:quit_on_failure] [eventlistener:quit_on_failure]
events=PROCESS_STATE_FATAL
command=/usr/bin/python /var/lib/tt-rss-install/manage-supervisord.py command=/usr/bin/python /var/lib/tt-rss-install/manage-supervisord.py
events=PROCESS_STATE_FATAL