[unix_http_server]
file=/var/run/supervisor.sock
chmod=0700

[supervisord]
nodaemon=true
user=root
logfile=/var/log/supervisord.log
pidfile=/var/run/supervisord.pid
loglevel=info

[rpcinterface:supervisor]
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock

[program:cliproxy]
command=node /usr/local/bin/ccs-docker-bootstrap run-cliproxy
directory=/root
autostart=true
autorestart=true
startsecs=5
startretries=3
stderr_logfile=/var/log/ccs/cliproxy.log
stderr_logfile_maxbytes=0
stdout_logfile=/var/log/ccs/cliproxy.log
stdout_logfile_maxbytes=0
priority=10

[program:ccs-dashboard]
command=ccs config --host 0.0.0.0 --port 3000
directory=/root
autostart=true
autorestart=true
startsecs=10
startretries=3
stderr_logfile=/var/log/ccs/ccs-dashboard.log
stderr_logfile_maxbytes=0
stdout_logfile=/var/log/ccs/ccs-dashboard.log
stdout_logfile_maxbytes=0
priority=20
environment=HOME="/root",NODE_ENV="production"
