@ -23,26 +23,26 @@ priority=1
autorestart=true
autorestart=true
[program:rqworker_default]
[program:rqworker_default]
command=%(ENV_HOME)s/wait-for-it.sh redi s:6379 -t 0 -- bash -ic \
command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_REDIS_HOST) s:6379 -t 0 -- bash -ic \
"exec /usr/bin/python3 %(ENV_HOME)s/manage.py rqworker -v 3 default"
"exec /usr/bin/python3 %(ENV_HOME)s/manage.py rqworker -v 3 default"
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
numprocs=2
numprocs=2
process_name=rqworker_default_%(process_num)s
process_name=rqworker_default_%(process_num)s
[program:rqworker_low]
[program:rqworker_low]
command=%(ENV_HOME)s/wait-for-it.sh redi s:6379 -t 0 -- bash -ic \
command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_REDIS_HOST) s:6379 -t 0 -- bash -ic \
"exec /usr/bin/python3 %(ENV_HOME)s/manage.py rqworker -v 3 low"
"exec /usr/bin/python3 %(ENV_HOME)s/manage.py rqworker -v 3 low"
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
numprocs=1
numprocs=1
[program:git_status_updater]
[program:git_status_updater]
command=%(ENV_HOME)s/wait-for-it.sh redi s:6379 -t 0 -- bash -ic \
command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_REDIS_HOST) s:6379 -t 0 -- bash -ic \
"/usr/bin/python3 ~/manage.py update_git_states"
"/usr/bin/python3 ~/manage.py update_git_states"
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
numprocs=1
numprocs=1
[program:rqscheduler]
[program:rqscheduler]
command=%(ENV_HOME)s/wait-for-it.sh redi s:6379 -t 0 -- bash -ic \
command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_REDIS_HOST) s:6379 -t 0 -- bash -ic \
"/usr/bin/python3 /usr/local/bin/rqscheduler --host redis -i 30"
"/usr/bin/python3 /usr/local/bin/rqscheduler --host redis -i 30"
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
numprocs=1
numprocs=1
@ -53,7 +53,7 @@ numprocs=1
; apps are dynamically loaded by an environment variable. It can lead to issues
; apps are dynamically loaded by an environment variable. It can lead to issues
; with docker cache. Thus it is necessary to run collectstatic here for such
; with docker cache. Thus it is necessary to run collectstatic here for such
; apps.
; apps.
command=%(ENV_HOME)s/wait-for-it.sh db :5432 -t 0 -- bash -ic \
command=%(ENV_HOME)s/wait-for-it.sh %(ENV_CVAT_POSTGRES_HOST)s :5432 -t 0 -- bash -ic \
"rm -f /tmp/cvat-server/httpd.pid && /usr/bin/python3 ~/manage.py migrate && \
"rm -f /tmp/cvat-server/httpd.pid && /usr/bin/python3 ~/manage.py migrate && \
/usr/bin/python3 ~/manage.py collectstatic --no-input && \
/usr/bin/python3 ~/manage.py collectstatic --no-input && \
exec /usr/bin/python3 $HOME/manage.py runmodwsgi --log-to-terminal --port 8080 \
exec /usr/bin/python3 $HOME/manage.py runmodwsgi --log-to-terminal --port 8080 \