add persistent storage on postgres and django

This commit is contained in:
2024-11-09 16:23:05 +01:00
parent 0184706c3a
commit bfd45be93b
7 changed files with 30 additions and 35 deletions

View File

@ -19,8 +19,8 @@ services:
djangoserver:
container_name: djangoserver
# volumes:
# - website_data:/var/www/djangoserver
volumes:
- django_storage:/var/www/djangoserver/storage
networks:
- transcendence
develop:
@ -55,6 +55,8 @@ services:
DB_PASSWORD: ${DB_PASSWORD}
networks:
- transcendence
volumes:
- postgres:/var/lib/postgresql/13/main
restart: always
adminer:
@ -65,12 +67,8 @@ services:
- transcendence
volumes:
website_data:
driver: local
driver_opts:
type: none
o: bind
device: '~/METH_data'
postgres:
django_storage:
networks:
transcendence: