build: seperate worker process

This commit is contained in:
pablohashescobar 2022-12-13 13:27:23 +05:30
parent ddd44a86bb
commit db10c884e8
2 changed files with 7 additions and 1 deletions

6
apiserver/bin/worker Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
python manage.py migrate
python manage.py rqworker

View File

@ -71,7 +71,7 @@ services:
image: plane-api
depends_on:
- redis
command: python manage.py rqworker
command: ./bin/worker
links:
- redis
environment: