44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
; TODO: Dockerfile - pip install supervisor supervisor-stdout
|
|
|
|
[supervisord]
|
|
nodaemon=true
|
|
|
|
[unix_http_server]
|
|
file=%(ENV_QUAYDIR)s/config_app/conf/supervisord.sock
|
|
user=root
|
|
|
|
[supervisorctl]
|
|
serverurl=unix:///%(ENV_QUAYDIR)s/config_app/conf/supervisord.sock
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[eventlistener:stdout]
|
|
environment=
|
|
PYTHONPATH=%(ENV_QUAYDIR)s
|
|
command = supervisor_stdout
|
|
buffer_size = 1024
|
|
events = PROCESS_LOG
|
|
result_handler = supervisor_stdout:event_handler
|
|
|
|
[program:gunicorn-config]
|
|
environment=
|
|
PYTHONPATH=%(ENV_QUAYDIR)s
|
|
command=gunicorn -c %(ENV_QUAYDIR)s/config_app/conf/gunicorn_web.py config_application:application
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stdout
|
|
stderr_logfile_maxbytes=0
|
|
stdout_events_enabled = true
|
|
stderr_events_enabled = true
|
|
|
|
[program:nginx]
|
|
environment=
|
|
PYTHONPATH=%(ENV_QUAYDIR)s
|
|
command=nginx -c %(ENV_QUAYDIR)s/config_app/conf/nginx.conf
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stdout
|
|
stderr_logfile_maxbytes=0
|
|
stdout_events_enabled = true
|
|
stderr_events_enabled = true
|