# Docker persistent storage

* adds named volume to docker-compose.yml to keep files uploaded on /konova_uploaded_files even on image rebuild
pull/109/head
mpeltriaux 3 years ago
parent 0c2d39ba96
commit 2118b42ecb

@ -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:
static_file_volume:
konova_uploaded_files:
Loading…
Cancel
Save