make the database persistant in production

This commit is contained in:
stupidcomputer 2024-06-28 17:04:45 -05:00
parent d5e74175e6
commit 36769ef6ac
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ services:
command: gunicorn franklincce.wsgi:application --bind 0.0.0.0:8000 command: gunicorn franklincce.wsgi:application --bind 0.0.0.0:8000
volumes: volumes:
- static_volume:/home/app/web/staticfiles - static_volume:/home/app/web/staticfiles
- db_persist:/home/app/web/franklincce/db.sqlite3
expose: expose:
- 8000 - 8000
env_file: env_file:
@ -20,3 +21,4 @@ services:
- web - web
volumes: volumes:
static_volume: static_volume:
db_persist: