Celery is a distributed task queue.
To use this container to run your Celery instance you need to:
- create a
Dockerfilethat extends this one
- put your Celery application in the root of your project at
- name your celery application variable within
- include a
requirements.txtfile at the root of your project to specify your Python dependencies
Dockerfile might look something like:
FROM shillaker/celery ADD my_celery_conf/celery_conf.py /container/conf/celery_conf.py
manage.py file exists in the root of your project the container will automatically set up your Django app for
Custom Start Script
If you would like to perform further set-up before the container has started you need to include your own start-up
ADD my_scripts/my_start_script.sh /container/scripts/start.sh
This can be used for things like setting up databases or extra resources required by your celery tasks.