# Self-host Vaultwarden

> A lightweight, self-hosted password manager server compatible with the Bitwarden clients.

- Page: https://levelrail.com/templates/vaultwarden/
- JSON: https://levelrail.com/templates/vaultwarden.json
- Category: Security
- Licence: AGPL-3.0-only (Network copyleft (AGPL) license)
- Source: https://github.com/dani-garcia/vaultwarden
- Upstream docs: https://github.com/dani-garcia/vaultwarden/wiki

## Requirements
- Memory: about 256 MiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: 1.32.1

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| vaultwarden | vaultwarden/server | 1.32.1 | 80 | vaultwarden_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| vaultwarden | ADMIN_TOKEN | generated |

## Deploy

### CLI

```bash
levelrail-cli templates deploy vaultwarden --name my-vaultwarden
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/vaultwarden/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Vaultwarden on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id vaultwarden for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image vaultwarden/server:1.32.1 is what you deploy there.

Self-host Vaultwarden, Vaultwarden docker compose file, deploy Vaultwarden on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
