Enable task log/progress to work within docker

We need the task log dir to be shared between the app and celery
containers, so mount a volume and point both of them into it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2019-04-09 09:53:47 +12:00
parent 3d11767066
commit 51bf00c15a
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@ services:
hostname: localhost
volumes:
- layersmeta:/opt/workdir
- logvolume:/opt/layerindex-task-logs:z
environment:
#- "SECRET_KEY=<set this here>"
- "DATABASE_USER=root"
@ -63,6 +64,7 @@ services:
image: halstead/layerindex-app
volumes:
- layersmeta:/opt/workdir
- logvolume:/opt/layerindex-task-logs:z
environment:
#- "SECRET_KEY=<set this here>"
- "DATABASE_USER=layers"
@ -87,4 +89,5 @@ services:
volumes:
layersmeta:
layersstatic:
logvolume:
certbotwww:

View File

@ -282,7 +282,7 @@ AXES_CACHE = "axes_cache"
AXES_LOCKOUT_TEMPLATE = "registration/account_lockout.html"
# Full path to directory to store logs for dynamically executed tasks
TASK_LOG_DIR = "/tmp/layerindex-task-logs"
TASK_LOG_DIR = "/opt/layerindex-task-logs"
# Full path to directory where rrs tools stores logs
TOOLS_LOG_DIR = ""