bitwarden 非常好用,而且搭建也方便,用这个 docker-compose.yml
```yaml
version: '3.3'
services:
server:
image: 'vaultwarden/server:latest'
volumes:
- '/opt/bitwarden/bw-data/:/data/'
ports:
- '127.0.0.1:3080:80'
- '3012:3012'
restart: always
environment:
- RUST_BACKTRACE=1
- 'DATABASE_URL=mysql://bitwarden_rs:bitwarden_rs@database.example.com/bitwarden_rs'
- ADMIN_TOKEN=example
- ENABLE_DB_WAL=false
- WEBSOCKET_ENABLED=true
- SMTP_HOST=
mail.example.com - SMTP_FROM=bitwarden@example.com
- SMTP_PORT=587
- SMTP_SSL=true
- SMTP_USERNAME=bitwarden@example.com
- SMTP_PASSWORD=example
- 'DOMAIN=
https://password.example.com'
```
然后设定一下反向代理把 3080 代理到 443,套 tls 就可以了