vaultwarden is an "Unofficial Bitwarden compatible server written in Rust".
This repository will help you produce a debian package.
Make sure you have the required build dependencies:
- docker
- curl
Then:
git clone https://github.com/greizgh/vaultwarden-debian.git
cd vaultwarden-debian
./build.sh -r <version> # target vaultwarden version >= 1.30.0
-r
: specify vaultwarden version, it will default to the latest release-i
: specify base image (default tovaultwarden/server
)-a
: override architecture (default toamd64
), read below-d
: DB type, can besqlite
(default),mysql
orpostgresql
-s
: do not wait for DB in systemd service (only relevant formysql
orpostgresql
)
The build.sh
script will reuse upstream binary from release images.
Building for will target the same architecture than the docker daemon's one.
In order to build for arm64, you need an arm64 docker host.
Then pass the -a arm64
flag to properly set the control file (this will only impact the control file, this is NOT cross compilation).
In case you want to customize the binary, follow upstream build guide and pass the -i
flag to build.sh
.
The packaged systemd unit is disabled, you need to configure vaultwarden through its
EnvFile:
/etc/vaultwarden/config.env
You will also probably want to setup a reverse proxy.
vaultwarden-debian is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
vaultwarden-debian is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Foobar. If not, see <https://www.gnu.org/licenses/>.
See COPYING for the full license.
Please note this does not assume anything about vaultwarden's own license.