Files
vaultwarden/Building-your-own-docker-image.md
Daniel García 3bbd0b6de0 Project renaming
2021-04-27 23:48:04 +02:00

630 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 vaultwarden .

To build with MySQL backend run:

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

To build with Postgresql backend run:

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

in docker-compose.yml it looks like

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