# 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
0c2d39ba96
commit
2118b42ecb
@ -17,6 +17,7 @@ services:
|
|||||||
command: gunicorn konova.wsgi:application --bind 0.0.0.0:8000
|
command: gunicorn konova.wsgi:application --bind 0.0.0.0:8000
|
||||||
volumes:
|
volumes:
|
||||||
- .:/konova
|
- .:/konova
|
||||||
|
- konova_uploaded_files:/konova_uploaded_files
|
||||||
- static_file_volume:/konova/static # Point to the volume for static files. Shared with nginx service
|
- static_file_volume:/konova/static # Point to the volume for static files. Shared with nginx service
|
||||||
expose:
|
expose:
|
||||||
- 8000
|
- 8000
|
||||||
@ -39,6 +40,7 @@ services:
|
|||||||
command: celery -A konova worker -l INFO
|
command: celery -A konova worker -l INFO
|
||||||
volumes:
|
volumes:
|
||||||
- .:/konova
|
- .:/konova
|
||||||
|
- konova_uploaded_files:/konova_uploaded_files
|
||||||
depends_on:
|
depends_on:
|
||||||
- konova
|
- konova
|
||||||
environment:
|
environment:
|
||||||
@ -67,4 +69,5 @@ networks:
|
|||||||
name: postgis_nat_it_backend
|
name: postgis_nat_it_backend
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
static_file_volume:
|
static_file_volume:
|
||||||
|
konova_uploaded_files:
|
Loading…
Reference in New Issue
Block a user