Example of how to handle background processes with Django, Celery, and Docker.
Check out the post.
Spin up the containers:
$ docker-compose up -d --build
Open your browser to http://localhost:1337 to view the app or to http://localhost:5555 to view the Flower dashboard.
Trigger a new task:
$ curl -F type=0 http://localhost:1337/tasks/
Check the status:
$ curl http://localhost:1337/tasks/<TASK_ID>/