Add documentation for how to use Celery and Redis together

This commit is contained in:
Tianon Gravi 2015-07-17 16:50:18 -07:00
parent 4361caee12
commit a47337f250
1 changed files with 10 additions and 2 deletions

View File

@ -6,10 +6,18 @@ Celery is an open source asynchronous task queue/job queue based on distributed
# How to use this image # How to use this image
## start a celery worker ## start a celery worker (RabbitMQ Broker)
docker run --link some-rabbit:rabbit --name some-celery -d celery docker run --link some-rabbit:rabbit --name some-celery -d celery
## check the status of a cluster ### check the status of the cluster
docker run --link some-rabbit:rabbit --rm celery celery status docker run --link some-rabbit:rabbit --rm celery celery status
## start a celery worker (Redis Broker)
docker run --link some-redis:redis -e CELERY_BROKER_URL=redis://redis --name some-celery -d celery
### check the status of the cluster
docker run --link some-redis:redis -e CELERY_BROKER_URL=redis://redis --rm celery celery status