From 0adb1a791cfb5079ff1fde2de0fc6ff7ab04f2f1 Mon Sep 17 00:00:00 2001 From: Anton Shubin <2spy4x@gmail.com> Date: Wed, 6 Mar 2024 01:26:24 +0800 Subject: [PATCH] feat: add VaultWarden --- .env.example | 3 ++- compose.yml | 25 ++++++++++++++++++++++++- homepage/src/index.html | 8 +++++++- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 84fea4e..e62b760 100644 --- a/.env.example +++ b/.env.example @@ -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 \ No newline at end of file +HOSTNAME_AQS=example.com +HOSTNAME_PASSWORDS=passwords.example.com diff --git a/compose.yml b/compose.yml index a10f681..e90b022 100644 --- a/compose.yml +++ b/compose.yml @@ -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" \ No newline at end of file + - "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" diff --git a/homepage/src/index.html b/homepage/src/index.html index 1e1ec6d..9bafda3 100644 --- a/homepage/src/index.html +++ b/homepage/src/index.html @@ -85,10 +85,16 @@ ⬇️ Torrents +