Merge pull request 'add celery to docker-compose file' (#56) from behruz into main
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 1m52s
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 1m52s
Reviewed-on: #56
This commit is contained in:
@@ -56,3 +56,20 @@ services:
|
||||
|
||||
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