feat: add VaultWarden

This commit is contained in:
Anton Shubin 2024-03-06 01:26:24 +08:00
parent 832c72b573
commit 0adb1a791c
3 changed files with 33 additions and 3 deletions

View File

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

View File

@ -173,3 +173,26 @@ services:
- "traefik.http.routers.homepage.tls=true" - "traefik.http.routers.homepage.tls=true"
- "traefik.http.routers.homepage.tls.certresolver=myresolver" - "traefik.http.routers.homepage.tls.certresolver=myresolver"
- "traefik.http.services.homepage.loadbalancer.server.port=80" - "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 ⬇️ Torrents
</a> </a>
</li> </li>
<li>
<a href="https://$HOSTNAME_PASSWORDS"
target="_blank">
🔑 Passwords
</a>
</li>
<li> <li>
<a href="https://$HOSTNAME_GITEA" <a href="https://$HOSTNAME_GITEA"
target="_blank"> target="_blank">
📦 Gitea 📦 Git
</a> </a>
</li> </li>
<li> <li>