This is an image for running Celery as a Docker container.
To make proper use of the image, you'll need to provide at the very least a
/code volume with a configuration file for celery, by default
celeryconfig.py. If the current directory holds a celeryconfig.py file,
the Celery worker can be started as:
docker run --volume $PWD:/code fcoelho/celery
The image will install by default the newest version of the celery package.
It's possible to install a specific version of any libraries needed using a
requirements file for pip. If a file named requirements.txt on the
/code volume is found when the container is started, it will be fed to
pip install -r. Note: if this file is supplied, the celery package has
to be installed from it, it won't be installed separately.
The container is configured through the following environment variables:
requirements.txtceleryconfig.pytrue, the
container will run Celery beat along the workersnotice as default/log/celery.log is usedThis container makes it possible to use a PyPI mirror during package
installation if one is available, such as a container running
devpi-server. To use
it, link to the container using pypi as its name:
docker run --link devpiserver_container:pypi fcoelho/celery
The image exposes the following volumes:
REQUIREMENTS_FILE and CELERY_MODULE are considered relative to
/codeContent type
Image
Digest
sha256:ecf604009…
Size
167.4 MB
Last updated
almost 11 years ago
docker pull fcoelho/celery