mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-25 11:19:21 -07:00
Renamed values according to the README
@@ -3,7 +3,7 @@
|
|||||||
By default all persistent data is saved under `/data`, you can override this path by setting the `DATA_FOLDER` env variable:
|
By default all persistent data is saved under `/data`, you can override this path by setting the `DATA_FOLDER` env variable:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -d --name bitwarden \
|
docker run -d --name vaultwarden \
|
||||||
-e DATA_FOLDER=/persistent \
|
-e DATA_FOLDER=/persistent \
|
||||||
-v /vw-data/:/persistent/ \
|
-v /vw-data/:/persistent/ \
|
||||||
-p 80:80 \
|
-p 80:80 \
|
||||||
@@ -17,10 +17,10 @@ Notice, that you need to adapt your volume mount accordingly.
|
|||||||
Default is `$DATA_FOLDER/db.sqlite3`, you can change the path specifically for database using `DATABASE_URL` variable:
|
Default is `$DATA_FOLDER/db.sqlite3`, you can change the path specifically for database using `DATABASE_URL` variable:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -d --name bitwarden \
|
docker run -d --name vaultwarden \
|
||||||
-e DATABASE_URL=/database/bitwarden.sqlite3 \
|
-e DATABASE_URL=/database/vaultwarden.sqlite3 \
|
||||||
-v /bw-data/:/data/ \
|
-v /vw-data/:/data/ \
|
||||||
-v /bw-database/:/database/ \
|
-v /vw-database/:/database/ \
|
||||||
-p 80:80 \
|
-p 80:80 \
|
||||||
vaultwarden/server:latest
|
vaultwarden/server:latest
|
||||||
```
|
```
|
||||||
@@ -32,10 +32,10 @@ Note, that you need to remember to mount the volume for both database and other
|
|||||||
Default is `$DATA_FOLDER/attachments`, you can change the path using `ATTACHMENTS_FOLDER` variable:
|
Default is `$DATA_FOLDER/attachments`, you can change the path using `ATTACHMENTS_FOLDER` variable:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -d --name bitwarden \
|
docker run -d --name vaultwarden \
|
||||||
-e ATTACHMENTS_FOLDER=/attachments \
|
-e ATTACHMENTS_FOLDER=/attachments \
|
||||||
-v /bw-data/:/data/ \
|
-v /vw-data/:/data/ \
|
||||||
-v /bw-attachments/:/attachments/ \
|
-v /vw-attachments/:/attachments/ \
|
||||||
-p 80:80 \
|
-p 80:80 \
|
||||||
vaultwarden/server:latest
|
vaultwarden/server:latest
|
||||||
```
|
```
|
||||||
@@ -47,12 +47,12 @@ Note, that you need to remember to mount the volume for both attachments and oth
|
|||||||
Default is `$DATA_FOLDER/icon_cache`, you can change the path using `ICON_CACHE_FOLDER` variable:
|
Default is `$DATA_FOLDER/icon_cache`, you can change the path using `ICON_CACHE_FOLDER` variable:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run -d --name bitwarden \
|
docker run -d --name vaultwarden \
|
||||||
-e ICON_CACHE_FOLDER=/icon_cache \
|
-e ICON_CACHE_FOLDER=/icon_cache \
|
||||||
-v /bw-data/:/data/ \
|
-v /vw-data/:/data/ \
|
||||||
-v /icon_cache/ \
|
-v /icon_cache/ \
|
||||||
-p 80:80 \
|
-p 80:80 \
|
||||||
vaultwarden/server:latest
|
vaultwarden/server:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Note, that in the above example we don't mount the volume locally, which means it won't be persisted during the upgrade unless you use intermediate data container using `--volumes-from`. This will impact performance as bitwarden will have to re-download the icons on restart, but might save you from having stale icons in cache as they are not automatically cleaned.
|
Note, that in the above example we don't mount the volume locally, which means it won't be persisted during the upgrade unless you use intermediate data container using `--volumes-from`. This will impact performance as vaultwarden will have to re-download the icons on restart, but might save you from having stale icons in cache as they are not automatically cleaned.
|
||||||
Reference in New Issue
Block a user