add celery to docker-compose file
This commit is contained in:
@@ -56,3 +56,20 @@ services:
|
|||||||
|
|
||||||
image: redis
|
image: redis
|
||||||
|
|
||||||
|
celery:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./docker/Dockerfile.web
|
||||||
|
command: celery -A config worker --loglevel=info
|
||||||
|
volumes:
|
||||||
|
- "./:/code"
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
- web
|
||||||
|
networks:
|
||||||
|
- sifatbaho
|
||||||
|
environment:
|
||||||
|
- CELERY_BROKER_URL=redis://redis:6379/0
|
||||||
|
- CELERY_RESULT_BACKEND=redis://redis:6379/0
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user