danielbrendel / hortusfox-web

Self-hosted collaborative plant management system for your local environment
https://www.hortusfox.com
MIT License
610 stars 34 forks source link

Rebuilding docker wipes out existing data in database #282

Open F117aDriver opened 1 day ago

F117aDriver commented 1 day ago

Describe the bug My setup is running in docker on an Unraid system. When the hortusfox container is updated, the database initialization procedure seems to run, deleting and recreating the database tables and wiping out all current data. The database is in a separate mariadb docker container.

To Reproduce Steps to reproduce the behavior:

  1. Install docker container
  2. Save some locations, plants
  3. Rebuild the image/container and point it at the existing database
  4. POOF, all saved data is gone.

Expected behavior Initialization should check if data exists and not overwrite it.

Software: HortusFox v3.5 PHP Version: 8.3.0 MySQL Version: 10.11.8-MariaDB

Desktop (please complete the following information):

Appoxo commented 6 hours ago

I am using the docker container from the repo ghcr.io/danielbrendel/hortusfox-web and the dockerhub mariaDB container mariadb:11.3
At least my container upgrade didnt nuke my database
My browser is firefox v131 on Win11