Persist Bitwarden config folder
Avoids gettings emails about new sign-up on every export
This commit is contained in:
parent
296fabede4
commit
5aff563599
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user