initial commit
This commit is contained in:
36
supervisord.conf
Normal file
36
supervisord.conf
Normal file
@ -0,0 +1,36 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/dev/stdout ; Supervisor itself → stdout
|
||||
logfile_maxbytes=0 ; (no rotation – keeps it simple)
|
||||
logfile_backups=0
|
||||
loglevel=info
|
||||
|
||||
[program:apache]
|
||||
command=/usr/sbin/apache2ctl -D FOREGROUND
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/dev/stdout ; Apache → stdout
|
||||
stderr_logfile=/dev/stderr ; Apache → stderr
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
||||
|
||||
[program:python]
|
||||
command=python3 /usr/src/app/app.py
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/dev/stdout ; Python → stdout
|
||||
stderr_logfile=/dev/stderr ; Python → stderr
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
||||
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx -g 'daemon off;'
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/dev/stdout ; Nginx → stdout
|
||||
stderr_logfile=/dev/stderr ; Nginx → stderr
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile_maxbytes=0
|
||||
redirect_stderr=true
|
||||
Reference in New Issue
Block a user