Files
vaultwarden/Building-your-own-docker-image.md
2020-09-17 10:55:16 +02:00

635 B

Clone the repository, then from the root of the repository run to build with default sqlite backend:

# Build the docker image:
docker build -t bitwarden_rs .

To build with MySQL backend run:

# Build the docker image:
docker build -t bitwarden_rs --build-arg DB=mysql .

To build with Postgresql backend run:

# Build the docker image:
docker build -t bitwarden_rs --build-arg DB=postgresql .

in docker-compose.yml it looks like

  bitwarden:
    # image: bitwardenrs/server-postgresql:latest
    image: bitwarden_rs
    build: 
      context: bitwarden_rs
      args: 
        DB: postgresql