Lost data after DB/BabyBuddy container update #795
Replies: 2 comments
-
Nothing jumps out at me as a potential cause here but also I'm not a big Docker user myself so not super familiar 😬 The only thing I notice is the Also do you see anything in logs that points to missing or unreadable files? |
Beta Was this translation helpful? Give feedback.
-
I think, to this date the, general policy regarding databases in containers (like docker) is: do not do it for production! The container isolation stuff can mess with database engines in some unexpected ways and the shutdown routines tend to not trigger as well as when they are installed directly on the OS. It is also a bit questionable to containerize a full production database engine which generally is quite heavy-weight and really benefits from filesystem-caching... could name a few more reasons. Sqlite is not a very bad choice unless you have low-latency requirements. I do not know your exact requirements but if you insist on running on an full database engine I would run or install the database in a VM or baremetal and work with that instance. Or use a managed database solution if possible? That probably is even more hands-off! |
Beta Was this translation helpful? Give feedback.
-
Hello guys,
Hope everything is fine!
I'm encountering some issues with BabyBuddy, that everytime there is an update on the DB container or on BabyBuddy all of my data gets errased.
No users, no babies, nothing tracked.
Like a fresh install.
If i go to the folders where i have the config files and DB all is there..
Do you know what is causing this issue?
(I'm using Postgres in order to use the grafana dashboard)
Had 0 issues with MySQL when i was testing.
Here is my docker-compose.yml:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions