Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Celery Container

Celery is a distributed task queue.

Usage

To use this container to run your Celery instance you need to:

  • create a Dockerfile that extends this one
  • put your Celery application in the root of your project at tasks/celery_conf.py
  • name your celery application variable within celery_conf.py as celery_app
  • include a requirements.txt file at the root of your project to specify your Python dependencies

Your Dockerfile might look something like:

FROM shillaker/celery
ADD my_celery_conf/celery_conf.py /container/conf/celery_conf.py

Including Django

If a manage.py file exists in the root of your project the container will automatically set up your Django app for
you.

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
script at /container/scripts/start.sh, e.g.

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.

Docker Pull Command
Owner
shillaker
Source Repository

Comments (0)