Add persistence for the database

This commit is contained in:
D. Scott Boggs 2023-06-13 10:18:20 -04:00
parent 99bae90def
commit 804fb5862a
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@
python-venv/
tickmate-backup-20230524.db
server/public/
db.mount/

View file

@ -24,6 +24,8 @@ services:
POSTGRES_DB: kalkulog
secrets: [ postgres-password ]
networks: [ internal ]
volumes:
- ./db.mount:/var/lib/postgresql/data
secrets:
postgres-password: