mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-14 14:02:23 +01:00
Merge 854a25cdc7
into 0fe93edea6
This commit is contained in:
commit
6b70bba585
1 changed files with 28 additions and 0 deletions
28
README.md
28
README.md
|
@ -35,6 +35,7 @@ Basically full implementation of Bitwarden API is provided including:
|
|||
|
||||
## Installation
|
||||
Pull the docker image and mount a volume from the host for persistent storage:
|
||||
### Using docker run
|
||||
|
||||
```sh
|
||||
docker pull vaultwarden/server:latest
|
||||
|
@ -42,6 +43,33 @@ docker run -d --name vaultwarden -v /vw-data/:/data/ --restart unless-stopped -p
|
|||
```
|
||||
This will preserve any persistent data under /vw-data/, you can adapt the path to whatever suits you.
|
||||
|
||||
### Using docker compose
|
||||
```yaml
|
||||
services:
|
||||
vaultwarden:
|
||||
container_name: vaultwarden
|
||||
image: vaultwarden/server:1.30.0
|
||||
volumes:
|
||||
- ./vw-data/:/data/
|
||||
ports:
|
||||
- 80:80
|
||||
restart: unless-stopped
|
||||
```
|
||||
and `docker compose up` or `docker compose up -d` to pull and run conteiner.
|
||||
|
||||
the left side of `volumes:` is where you can find vaultwarden data on your PC/server relative to the folder where you store the docker-compose.yml file
|
||||
example:
|
||||
```yaml
|
||||
vaultwarden-dir/
|
||||
docker-compose.yml
|
||||
vw-data/
|
||||
<vaultwarden data from the /data folder inside the container>
|
||||
```
|
||||
|
||||
the left side of `ports:` is the port your instance will run on (example: `http://127.0.0.1:80`)
|
||||
|
||||
For other examples of using docker compose, see wiki page [Using Docker Compose](https://github.com/dani-garcia/vaultwarden/wiki/Using-Docker-Compose).
|
||||
|
||||
**IMPORTANT**: Most modern web browsers disallow the use of Web Crypto APIs in insecure contexts. In this case, you might get an error like `Cannot read property 'importKey'`. To solve this problem, you need to access the web vault via HTTPS or localhost.
|
||||
|
||||
This can be configured in [vaultwarden directly](https://github.com/dani-garcia/vaultwarden/wiki/Enabling-HTTPS) or using a third-party reverse proxy ([some examples](https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examples)).
|
||||
|
|
Loading…
Reference in a new issue