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:
|
services:
|
||||||
bitwarden-to-keepass:
|
bitwarden-to-keepass:
|
||||||
build: .
|
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:
|
volumes:
|
||||||
- ./exports:/exports
|
- ./exports:/exports
|
||||||
tmpfs:
|
- 'bw-config:/root/.config/Bitwarden CLI'
|
||||||
- /tmp
|
|
||||||
- '/root/.config/Bitwarden CLI'
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
bw-config:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user