Setup & Configuration
We need to install the service through Portainer and configure any necessary settings.
Preparation
There are some things we need to do in preparation to install this service.
Volumes
Persistent Data
This is where the service will store its own application data and ensures we can quickly update the service image.
Ensure your user has permissions to access the folder.
Environment
SIGNUPS_ALLOWED
We need to temporarily enable this setting to allow us to create a new account with the service.
Installation
The service can be installed through the Portainer web interface.
Learn about creating a new stack.
Docker Compose
Use the following code to install the service:
---
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
network_mode: bridge
environment:
- TZ=America/Vancouver
- SIGNUPS_ALLOWED=true
ports:
- 2546:80
volumes:
- /srv/vaultwarden:/data
restart: unless-stopped
Updating
Backup and Re-Deploy the Stack
VaultWarden has been optimized for running in Docker. This allows you to re-deploy the stack through Portainer to download the latest updates.
Due to the important nature of this data, it is always crucial to perform a full backup before upgrading.