-
Notifications
You must be signed in to change notification settings - Fork 86
Celery Plus Docker
AAK edited this page Nov 14, 2018
·
1 revision
Add following section to docker-compose.yml
celery:
container_name: ce01
build: .
command: celery -A reminiscence worker --loglevel=info
volumes:
- .:/usr/src/reminiscence
depends_on:
- db
- redis
redis:
container_name: rd01
image: redis:latest
ports:
- "6379:6379"
Now open both settings.py and dockersettings.py files and modify following
BROKER_URL = 'redis://redis:6379'
CELERY_RESULT_BACKEND = 'redis://redis:6379'
In dockersettings.py file enable use of Celery
USE_CELERY = True