Persist Bitwarden config folder

Avoids gettings emails about new sign-up on every export
This commit is contained in:
David Němec 2022-06-11 15:45:42 +02:00
parent 296fabede4
commit 5aff563599
No known key found for this signature in database
GPG Key ID: B1064EFFFD11AA75

View File

@ -2,11 +2,16 @@ version: '3.8'
services:
bitwarden-to-keepass:
build: .
command: bash -c 'export BW_SESSION=`$BW_PATH login --raw` && python3 bitwarden-to-keepass.py && $BW_PATH lock'
command: >
bash -c 'export BW_SESSION=`$BW_PATH login --raw || $BW_PATH unlock --raw`
&& $BW_PATH sync
&& python3 bitwarden-to-keepass.py
&& $BW_PATH lock'
volumes:
- ./exports:/exports
tmpfs:
- /tmp
- '/root/.config/Bitwarden CLI'
- 'bw-config:/root/.config/Bitwarden CLI'
env_file:
- .env
volumes:
bw-config: