Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random purging of volumes. #58

Open
tokejepsen opened this issue Nov 5, 2019 · 2 comments
Open

Random purging of volumes. #58

tokejepsen opened this issue Nov 5, 2019 · 2 comments

Comments

@tokejepsen
Copy link
Collaborator

Issue

We have been using this image for production for a while. We routinely take backups of the database each day, so restoring is not an issue.

The issue we have faced twice now, is that the volume were the database gets stored are somehow purged without user interaction.

@mottosso
Copy link
Contributor

mottosso commented Nov 6, 2019

Somehow? :O

I would recommend you don't use volumes, but mount an existing volume off disk. It won't do well on Windows, which is why I would also recommend you host the database elsewhere. Volumes and Docker are kind of transient; they aren't meant for persistence (as far as I know) but more as a temporary storage location. I use them in tutorials and such because they're easy, but for production definitely host an actual db somewhere.

@tokejepsen
Copy link
Collaborator Author

I know it's not the best solution but the overhead on the management of actual database is not worth it for us atm.
Use the docker image has been working great for 6 months, except for these two occasions, and with the backup feature in this repo we can restore the database in seconds.

It's something to warn against for other users though. As a solution for us atm, is to take more frequent backups, which is not a bad thing anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants