feat(worker): Add db_worker service with automatic restart and logging
feat(task_overview): Display generated series in task overview docs(README): Update documentation for background task workers and troubleshooting
This commit is contained in:
@@ -30,6 +30,23 @@ services:
|
||||
- 3459:3459
|
||||
env_file:
|
||||
- ./.env.dev.local
|
||||
|
||||
worker:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: rad/Dockerfile
|
||||
command: python manage.py db_worker
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ../:/usr/src/app
|
||||
- ../backups:/usr/src/app/backups
|
||||
- ../media:/usr/src/app/media
|
||||
- ../static:/usr/src/app/static
|
||||
env_file:
|
||||
- ./.env.dev.local
|
||||
depends_on:
|
||||
- web
|
||||
- db
|
||||
db:
|
||||
image: postgres:14.2-alpine
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user