# Docker persistent storage
* adds named volume to docker-compose.yml to keep files uploaded on /konova_uploaded_files even on image rebuild
This commit is contained in:
parent
924ce17ad5
commit
273d47c7b5
@ -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…
Reference in New Issue
Block a user