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

BitwardenRS Data directory not populating at setup #283

Closed
laoistom opened this issue Feb 11, 2021 · 3 comments
Closed

BitwardenRS Data directory not populating at setup #283

laoistom opened this issue Feb 11, 2021 · 3 comments

Comments

@laoistom
Copy link

Hi Guys,

First time to post an issue to Github, be gentle with me.

I noticed an issue where if I deploy BitwardenRS and Watchtower using Yacht, Bitwarden doesn't required a path for the /data directory and defaults to the docker default volume. However when Watchtower detects an update and then performs the update it does so with a newly generated Docker Volume.

I ran into this when Watchtower updated my Bitwarden deployment on the 7th of February.

My suggested fix is to have yacht define a Data volume at deployment to ensure data persistence.

I understand that this can be done by the user during deployment but I feel it would be a far better user experience if this was automatic at point of deployment.

Thanks

Tom

@SelfhostedPro
Copy link
Owner

Hey, the fact that the bind mount was removed sounds like a watchtower issue as that's the only thing that would have done that. A container cannot change that on its own.

Docker will automatically use a volume for defined paths in a container if you don't bind mount them as long as it's defined in the dockerfile so there's nothing that yacht could change at that point.

Yacht includes functionality to update containers. If you wanted to avoid automatic updates you could just use the check for updates button in the app list and then it's a simple click to update from there (it uses watchtower on the backend to do the update with the --run-once and --cleanup flags targeting the container you're updating).

@laoistom
Copy link
Author

Perfect thanks for that. I'll disable watchtower and use that feature in yacht.

@SelfhostedPro
Copy link
Owner

Glad to hear it. It may still be a good idea to open an issue in the watchtower repo so they know about it.

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