Some checks failed
CI / Banner Tests (push) Has been cancelled
CI / Banner Build (push) Has been cancelled
CI / Admin UI Typecheck (push) Has been cancelled
CI / Admin UI Tests (push) Has been cancelled
CI / Admin UI Build (push) Has been cancelled
CI / Detect changes (push) Has been cancelled
CI / API Lint (push) Has been cancelled
CI / API Tests (push) Has been cancelled
CI / Scanner Lint (push) Has been cancelled
CI / Scanner Tests (push) Has been cancelled
CI / Banner Lint & Typecheck (push) Has been cancelled
ScannerSettings uses case_sensitive=False and field name 'port', so it picks up PORT=80 from the container's shared environment and tries to bind port 80 instead of the correct 8001. Wrap scanner command with PORT=8001 to prevent env collision.
81 lines
1.8 KiB
Plaintext
81 lines
1.8 KiB
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
logfile=/var/log/supervisor/supervisord.log
|
|
pidfile=/var/run/supervisord.pid
|
|
user=root
|
|
|
|
[unix_http_server]
|
|
file=/var/run/supervisor.sock
|
|
chmod=0700
|
|
|
|
[supervisorctl]
|
|
serverurl=unix:///var/run/supervisor.sock
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[program:nginx]
|
|
command=nginx -g "daemon off;" -c /etc/nginx/conf.d/default.conf
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
stopwaitsecs=5
|
|
killasgroup=true
|
|
priority=100
|
|
|
|
[program:api]
|
|
command=sh -c "uvicorn src.main:app --host 127.0.0.1 --port 8000 --workers ${API_WORKERS:-4} --access-log --proxy-headers --forwarded-allow-ips '*'"
|
|
directory=/app
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
stopwaitsecs=10
|
|
killasgroup=true
|
|
priority=200
|
|
|
|
[program:worker]
|
|
command=celery -A src.celery_app worker --loglevel=info --concurrency=2
|
|
directory=/app
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
stopwaitsecs=30
|
|
killasgroup=true
|
|
priority=300
|
|
|
|
[program:beat]
|
|
command=celery -A src.celery_app beat --loglevel=info
|
|
directory=/app
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
stopwaitsecs=10
|
|
killasgroup=true
|
|
priority=400
|
|
|
|
[program:scanner]
|
|
command=sh -c "PORT=8001 python -m src.worker"
|
|
directory=/app
|
|
autostart=true
|
|
autorestart=true
|
|
startsecs=10
|
|
stdout_logfile=/var/log/scanner.log
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/var/log/scanner.log
|
|
stderr_logfile_maxbytes=0
|
|
stopwaitsecs=10
|
|
killasgroup=true
|
|
priority=150
|