4NK_vault/storage/dev/supervisor/supervisord.conf

51 lines
1.2 KiB
Plaintext

[supervisord]
nodaemon=true
user=root
logfile=$SUPERVISOR_LOGS_DIR/supervisord.log
pidfile=$ROOT_DIR_RUN/supervisord.pid
childlogdir=$SUPERVISOR_LOGS_DIR
[unix_http_server]
file=$ROOT_DIR_RUN/supervisor.sock
chmod=0700
[supervisorctl]
serverurl=unix://$ROOT_DIR_RUN/supervisor.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
autostart=true
autorestart=true
stderr_logfile=$SUPERVISOR_LOGS_DIR/nginx.err.log
stdout_logfile=$SUPERVISOR_LOGS_DIR/nginx.out.log
user=root
[program:docker-compose]
command=/app/scripts/startup.sh
directory=/app
autostart=true
autorestart=true
stderr_logfile=$SUPERVISOR_LOGS_DIR/docker-compose.err.log
stdout_logfile=$SUPERVISOR_LOGS_DIR/docker-compose.out.log
user=appuser
environment=HOME="/app"
[program:cron]
command=/usr/sbin/cron -f
autostart=true
autorestart=true
stderr_logfile=$SUPERVISOR_LOGS_DIR/cron.err.log
stdout_logfile=$SUPERVISOR_LOGS_DIR/cron.out.log
user=root
[program:logrotate]
command=/usr/sbin/logrotate $LOGROTATE_CONF_DIR/lecoffre
autostart=true
autorestart=false
startsecs=0
exitcodes=0
user=root