ReaSpeech-Cloud / supervisord.conf
j
added cadvisor and nginx reverse proxy
7b81ce2
raw
history blame contribute delete
851 Bytes
[unix_http_server]
file=/tmp/supervisor.sock
chmod=0700
chown=service:service
[supervisord]
logfile=/tmp/supervisord.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=info
pidfile=/tmp/supervisord.pid
nodaemon=true
user=service
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
[program:app]
command=/app/.venv/bin/python /app/app/run.py
user=service
autostart=true
autorestart=true
[program:cadvisor]
command=/usr/local/bin/cadvisor --port=8080 --allow_dynamic_housekeeping=false --listen_ip=0.0.0.0
user=service
autostart=true
autorestart=true
stdout_logfile=/tmp/cadvisor.log
stderr_logfile=/tmp/cadvisor_err.log
redirect_stderr=true
[program:nginx]
command=nginx -g 'daemon off;'
user=service
autostart=true
autorestart=true