getmango / Mango

Mango is a self-hosted manga server and web reader
https://getmango.app
MIT License
1.69k stars 118 forks source link

[Bug Report] mango.db is not persistent in the Docker Image #341

Open LostOnTheLine opened 1 year ago

LostOnTheLine commented 1 year ago

Describe the bug The Mango.db file defaults to a location that is not saved in the Docker-Compose provided with the Docker Image. It is saved in /root while it mounts /root/mango. If one does not change the location in the config file the database is lost on a restart. & then you have to delete the cache, & start from scratch, getting a new admin password & creating new users

To Reproduce Steps to reproduce the behavior: Run the docker as it's specified on DockerHub Create a user Add a manga Stop the container/stack Start the container/stack

Expected behavior Your users are supposed to be kept between sessions

Environment (please complete the following information):

Docker (if you are running Mango in a Docker container)

Additional context Add any other context about the problem here. Add screenshots if applicable.

hkalexling commented 1 year ago

Yes it was a typo and has been fixed in https://github.com/getmango/Mango/pull/337. I am just too busy to make a proper release. Will do it this week. Keeping this issue opened for now until the release is out.

Tzrlk commented 1 year ago

I am just too busy to make a proper release.

I feel this in my bones.


The workaround (though this should be obvious):

hkmelee commented 5 months ago

or cp /root/mango.db /root/.config/mango/ vi /root/.config/mango/config.yml db_path: /root/.config/mango/mango.db It FIX.