mobergmann / sportsfriend

0 stars 0 forks source link

Move Sqlite Database into a Docker Volume/Mount #4

Closed mobergmann closed 10 months ago

mobergmann commented 10 months ago

We should move the database into a separate docker volume/mount. That would allow us to persist the data even after an (docker-)update.

I suggest using an environment variable, which defaults to the desired repository internal location for setting the database location, so we can customize the database location when deploying the project.
We should also investigate if the database should be created within the rust code (maybe at startup), so we don't have to drag around the data.db file and pay attention not changing it.