Working on tasks
This commit is contained in:
@@ -34,9 +34,10 @@ services:
|
||||
environment:
|
||||
- REDIS_URL=redis://redis:6379/0
|
||||
- MONGODB_URL=mongodb://admin:password123@mongodb:27017/mydocmanager?authSource=admin
|
||||
- PYTHONPATH=/app
|
||||
- PYTHONPATH=/app:/tasks # Added /tasks to Python path
|
||||
volumes:
|
||||
- ./src/file-processor:/app
|
||||
- ./src/worker/tasks:/app/tasks # <- Added: shared access to worker tasks
|
||||
- ./volumes/watched_files:/watched_files
|
||||
- ./volumes/objects:/objects
|
||||
depends_on:
|
||||
@@ -57,14 +58,15 @@ services:
|
||||
- MONGODB_URL=mongodb://admin:password123@mongodb:27017/mydocmanager?authSource=admin
|
||||
- PYTHONPATH=/app
|
||||
volumes:
|
||||
- ./src/worker/tasks:/app
|
||||
- ./src/worker:/app
|
||||
- ./volumes/watched_files:/watched_files
|
||||
depends_on:
|
||||
- redis
|
||||
- mongodb
|
||||
networks:
|
||||
- mydocmanager-network
|
||||
command: celery -A main worker --loglevel=info
|
||||
command: celery -A tasks.main worker --loglevel=info
|
||||
#command: celery -A main --loglevel=info # pour la production
|
||||
|
||||
volumes:
|
||||
mongodb-data:
|
||||
|
||||
Reference in New Issue
Block a user