mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-03-27 07:28:31 +07:00
29 lines
632 B
Markdown
29 lines
632 B
Markdown
Clone the repository, then from the root of the repository run to build with default sqlite backend:
|
|
|
|
```sh
|
|
# Build the docker image:
|
|
docker build -t vaultwarden .
|
|
```
|
|
|
|
To build with MySQL backend run:
|
|
```sh
|
|
# Build the docker image:
|
|
docker build -t vaultwarden --build-arg DB=mysql .
|
|
```
|
|
|
|
To build with Postgresql backend run:
|
|
```sh
|
|
# Build the docker image:
|
|
docker build -t vaultwarden --build-arg DB=postgresql .
|
|
```
|
|
in docker-compose.yml it looks like
|
|
```...
|
|
vaultwarden:
|
|
# image: vaultwarden/server-postgresql:latest
|
|
image: vaultwarden
|
|
build:
|
|
context: vaultwarden
|
|
args:
|
|
DB: postgresql
|
|
```
|