Example of how to handle background processes with Flask, Redis Queue, and Docker
Spin up the containers:
$ docker-compose up -d
Open your browser to http://localhost:5004 to view the app or to http://localhost:9181 to view the RQ dashboard.
Check out the post.