Task Scheduler for Docker Functions
DQ is an amalgamation of the best features of a job scheduler like resque and a serverless platform like AWS lambda. It is meant to be self-hosted and called using REST APIs. All tasks run on docker containers defined in a spec similar to compose called dq.yml
DQ won 4th place in the Docker 1.12 Hackathon
- Call a background task with arguments [Ex: sending email]
- Schedule a recurring task [Ex: backing up db]
- Run a background service that handles HTTP requests and auto scales based on load [voting, spam checking]
To use some features like services, you will need Docker 1.12 or above
- Create a
dq.yml
based on the sample in this repo - Create a network
docker network create dq_net
- Start redis
docker run -d --name redis --net dq_net redis
- Start DQ
-v $(pwd)/dq.yml:/dq/dq.yml -v /var/run/docker.sock:/var/run/docker.sock \ shrikrishna/dq```
Fork/clone this repo and edit dq.yml
- Fork this repo
docker-compose up -d