From 273d47c7b5a65795e9bb6fcf6ade983843a97c51 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Thu, 13 Jan 2022 14:07:18 +0100 Subject: [PATCH] # Docker persistent storage * adds named volume to docker-compose.yml to keep files uploaded on /konova_uploaded_files even on image rebuild --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 82d8b60f..2ad08203 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,7 @@ services: command: gunicorn konova.wsgi:application --bind 0.0.0.0:8000 volumes: - .:/konova + - konova_uploaded_files:/konova_uploaded_files - static_file_volume:/konova/static # Point to the volume for static files. Shared with nginx service expose: - 8000 @@ -39,6 +40,7 @@ services: command: celery -A konova worker -l INFO volumes: - .:/konova + - konova_uploaded_files:/konova_uploaded_files depends_on: - konova environment: @@ -67,4 +69,5 @@ networks: name: postgis_nat_it_backend volumes: - static_file_volume: \ No newline at end of file + static_file_volume: + konova_uploaded_files: \ No newline at end of file