Comments (2)
That's not a bad solution, except I'm worried about those who have it in the old location getting a new docker-compose and not updating their .env and moving the file.
I'd like a solution that keeps backwards compatibility, especially when it comes to backups, but not sure there is one without being excessively hacky.
I did try to add a mount from ${PWD}/bitwarden/rclone.conf:/data/rclone/rclone.conf, however that fails to start when there is no rclone.conf in that location.
In the meantime I'm going to update the bitwarden mount to not be writable.
from bitwarden_gcloud.
I took another look at this, and came up with the changes as you suggested @whyb0rn-
Changes:
.env.template
: move to new locationBACKUP_RCLONE_CONF=/data/rclone/rclone.conf
docker-compose.yml
: make data read only, mount newrclone
folder- ${PWD}/bitwarden:/data:ro
- ${PWD}/bitwarden/rclone:/data/rclone
- ${PWD}/bitwarden/backups:/data/backups
There are likely scenarios that I could imagine:
- New users - use new compose and new env template: OK
- Old users get the new compose - use new compose and old env: Probably OK
rclone.conf
is still in/data
which is READ ONLY. This will continue to work for backups until they update their rclone conf using the instructions in the wiki.- Resolution: Most old users won't have an issue. If they update their
rclone.conf
they will get a read-only error, and hopefully find the fix in the wiki.
I'm happy with this solution, and will be pushing the changes. Thanks @whyb0rn.
from bitwarden_gcloud.
Related Issues (20)
- Use caddy:alpine instead of caddy/caddy:alpine
- YUBICO_SERVER can no longer be an empty string, causes restart loops HOT 3
- how to update a running instance? HOT 1
- Use gcloud flow URL in documentation to enable gcloud settings HOT 1
- Improve README.md HOT 1
- Log rotation? HOT 2
- .env changes not affecting VW variables HOT 1
- Can't get admin page enabled HOT 2
- Can not encrypt backup files. HOT 4
- DDNS stopped working HOT 9
- Fail2ban not sending shutdown and startup emails
- Issue with SMTP_TLS in .env HOT 3
- Instance has become inaccessible HOT 8
- Docker compose version HOT 1
- Vaultwarden's IP_HEADER env var is inconsistent HOT 1
- Fail2ban email via SMTP fails HOT 7
- [offtopic, not a technical issue] google charging for network traffic from US to EMEA HOT 8
- error proxy when start docker-compose up HOT 4
- DDNS doesn't seem to run HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitwarden_gcloud.