Minimal example/template of how to start rq workers in docker containers using supervisor.
For a more detailed explanation, visit my blog at randydeng.com
- Install docker CE
- Install docker-compose
- Use UNIX-like operating system
RQ is a Python library for queuing jobs and processing them in the background with workers.
See https://python-rq.org/ for full details.
Supervisor is a client/server system that allows control of a number of processes on UNIX-like operating systems.
See http://supervisord.org/introduction.html for full details.
Simply run the following:
docker-compose build
docker-compose up
You can verify everything is working by visiting localhost:9181
.
You should see something similar to the following: