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:
@@ -17,6 +17,20 @@ services:
|
||||
- ../:/usr/src/app:cached
|
||||
# Mount the app log directory so logs are visible on the host at ./logs
|
||||
- ../logs:/var/log/rad
|
||||
|
||||
worker:
|
||||
env_file:
|
||||
- ../.env.dev
|
||||
volumes:
|
||||
- ../:/usr/src/app:cached
|
||||
- ../logs:/var/log/rad
|
||||
entrypoint:
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"python manage.py migrate --noinput && exec python manage.py db_worker",
|
||||
]
|
||||
command: []
|
||||
nginx:
|
||||
# Development nginx override: mount a simplified config that does not
|
||||
# reference LetsEncrypt certs so the container can start without real
|
||||
|
||||
Reference in New Issue
Block a user