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

@ -13,4 +13,5 @@ HOSTNAME_PHOTOS=photos.example.com
HOSTNAME_GITEA=git.example.com
HOSTNAME_HOMEPAGE=ui.example.com
HOSTNAME_SAGE=sage.example.com
HOSTNAME_AQS=example.com
HOSTNAME_AQS=example.com
HOSTNAME_PASSWORDS=passwords.example.com

View File

@ -172,4 +172,27 @@ services:
- "traefik.http.routers.homepage.entrypoints=websecure"
- "traefik.http.routers.homepage.tls=true"
- "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
</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>