Support worker in dokcer build

This commit is contained in:
Georges-Antoine Assi
2023-08-04 23:03:19 -04:00
parent 20bdb92377
commit 28c81293e1
12 changed files with 70 additions and 35 deletions

View File

@@ -1,11 +1,16 @@
#!/bin/bash
# Run migrations and start uvicorn
/init_back &
# Start nginx
/init_front &
# Start rq worker
/init_worker &
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?