feat: add VaultWarden

This commit is contained in:
Anton Shubin 2024-03-06 01:29:53 +08:00
parent 832c72b573
commit c3ab38f34f
4 changed files with 36 additions and 3 deletions

View File

@ -14,3 +14,4 @@ HOSTNAME_GITEA=git.example.com
HOSTNAME_HOMEPAGE=ui.example.com
HOSTNAME_SAGE=sage.example.com
HOSTNAME_AQS=example.com
HOSTNAME_PASSWORDS=passwords.example.com

View File

@ -30,6 +30,9 @@ Gitea is a lightweight self-hosted Git service, similar to GitHub.
### [Immich](https://immich.app/)
Google Photos self-hosted alternative.
### [Vaultwarden](https://github.com/dani-garcia/vaultwarden)
Password Manager, Bitwarden-compatible server written in Rust.
### [Homepage](./homepage/src/index.html)
A simple homepage with links to all the services.

View File

@ -173,3 +173,26 @@ services:
- "traefik.http.routers.homepage.tls=true"
- "traefik.http.routers.homepage.tls.certresolver=myresolver"
- "traefik.http.services.homepage.loadbalancer.server.port=80"
vaultwarden:
container_name: vaultwarden
image: vaultwarden/server:latest
environment:
- DOMAIN=https://${HOSTNAME_PASSWORDS}
volumes:
- ./.volumes/vaultwarden:/data
restart: unless-stopped
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
security_opt:
- no-new-privileges:true
labels:
- "traefik.enable=true"
- "traefik.http.routers.vaultwarden.rule=Host(`${HOSTNAME_PASSWORDS}`)"
- "traefik.http.routers.vaultwarden.entrypoints=websecure"
- "traefik.http.routers.vaultwarden.tls=true"
- "traefik.http.routers.vaultwarden.tls.certresolver=myresolver"
- "traefik.http.services.vaultwarden.loadbalancer.server.port=80"

View File

@ -85,10 +85,16 @@
⬇️ Torrents
</a>
</li>
<li>
<a href="https://$HOSTNAME_PASSWORDS"
target="_blank">
🔑 Passwords
</a>
</li>
<li>
<a href="https://$HOSTNAME_GITEA"
target="_blank">
📦 Gitea
📦 Git
</a>
</li>
<li>