mirror of
https://github.com/xwiki-labs/cryptpad-docker.git
synced 2024-11-25 10:45:05 +00:00
50 lines
1.8 KiB
Text
50 lines
1.8 KiB
Text
|
[unix_http_server]
|
||
|
file=/dev/shm/supervisor.sock ; (the path to the socket file)
|
||
|
|
||
|
[supervisord]
|
||
|
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
|
||
|
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
|
||
|
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
|
||
|
loglevel=info ; (log level;default info; others: debug,warn,trace)
|
||
|
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
|
||
|
nodaemon=false ; (start in foreground if true;default false)
|
||
|
minfds=1024 ; (min. avail startup file descriptors;default 1024)
|
||
|
minprocs=200 ; (min. avail process descriptors;default 200)
|
||
|
user=root ;
|
||
|
|
||
|
; the below section must remain in the config file for RPC
|
||
|
; (supervisorctl/web interface) to work, additional interfaces may be
|
||
|
; added by defining them in separate rpcinterface: sections
|
||
|
;[rpcinterface:supervisor]
|
||
|
;supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||
|
|
||
|
;[supervisorctl]
|
||
|
;serverurl=unix:///dev/shm/supervisor.sock ; use a unix:// URL for a unix socket
|
||
|
|
||
|
[program:node]
|
||
|
command = /usr/local/bin/node /cryptpad/server.js
|
||
|
user=cryptpad
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=5
|
||
|
stdout_logfile=/dev/stdout
|
||
|
stdout_logfile_maxbytes=0
|
||
|
stderr_logfile=/dev/stderr
|
||
|
stderr_logfile_maxbytes=0
|
||
|
stopsignal=QUIT
|
||
|
|
||
|
[program:nginx]
|
||
|
command=/usr/sbin/nginx -g "daemon off;"
|
||
|
autostart=true
|
||
|
autorestart=true
|
||
|
priority=10
|
||
|
stdout_logfile=/dev/stdout
|
||
|
stdout_logfile_maxbytes=0
|
||
|
stderr_logfile=/dev/stderr
|
||
|
stderr_logfile_maxbytes=0
|
||
|
stopsignal=QUIT
|
||
|
|
||
|
[eventlistener:processes]
|
||
|
command=sh -c "printf 'READY\n' && while read line; do kill -SIGQUIT $PPID; done < /dev/stdin"
|
||
|
events=PROCESS_STATE_STOPPED,PROCESS_STATE_EXITED,PROCESS_STATE_FATAL
|