feat: add vaultwarden-with-backup template#725
feat: add vaultwarden-with-backup template#725CarlosHugoRodriguezC wants to merge 2 commits intoDokploy:canaryfrom
Conversation
Adds a new Vaultwarden template with automated backups to Cloudflare R2 storage. Services: - vaultwarden/server:1.34.3 - password manager - alpine:3.20 - configurator that generates rclone.conf for R2 - ttionya/vaultwarden-backup:1.26.2 - scheduled backups Includes configurable SMTP, timezone, admin token, and R2 credentials.
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
| @@ -0,0 +1,69 @@ | |||
| services: | |||
There was a problem hiding this comment.
missing version: "3.8" at the top of the file (required by style guide)
| services: | |
| version: "3.8" | |
| services: |
Context Used: Context from dashboard - AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Pull request overview
This PR adds a new Vaultwarden template with automated backup functionality to Cloudflare R2 storage. It extends the existing vaultwarden template (blueprints/vaultwarden) by adding two additional services: a configurator that generates rclone configuration for R2, and a backup service that performs scheduled backups. The template provides comprehensive environment variable configuration for SMTP, backup scheduling, and R2 credentials.
Changes:
- Added new vaultwarden-with-backup blueprint with docker-compose.yml, template.toml, and logo
- Added corresponding meta.json entry for the new template
- Meta.json was processed by dedupe-and-sort script (Strapi entry reordered alphabetically)
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| meta.json | Added new vaultwarden-with-backup entry and reordered Strapi entry for alphabetical sorting |
| blueprints/vaultwarden-with-backup/docker-compose.yml | Defines three services: vaultwarden (main app), configurator (generates R2 config), and backup (scheduled backups) |
| blueprints/vaultwarden-with-backup/template.toml | Configuration for domain mapping, environment variables, and auto-generated secrets |
| blueprints/vaultwarden-with-backup/vaultwarden.svg | Logo file for the template |
- Switch env var syntax from list (- KEY=VALUE) to map (KEY: VALUE) for consistency with existing vaultwarden template - Add environment section to configurator service so R2 vars are available at runtime - Add validation for R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_ACCOUNT_ID before generating rclone.conf, exit with error if any are missing
| services: | ||
| vaultwarden: |
There was a problem hiding this comment.
docker-compose.yml is missing the required top-level version: "3.8" header. Add it above services: to match the repository’s Docker Compose conventions and keep parsing consistent across tooling.
New Template: vaultwarden-with-backup
Adds a Vaultwarden template with automated backups to Cloudflare R2 storage.
Services
vaultwarden/server:1.34.3) — Password manageralpine:3.20) — Generates rclone.conf for Cloudflare R2 (runs once and exits)ttionya/vaultwarden-backup:1.26.2) — Scheduled backups via cronFeatures
Checklist
latest)docker manifest inspectports,container_name, ornetworksin docker-compose.ymlmeta.jsonentry added and processed withdedupe-and-sort-meta.jsGreptile Summary
Adds a new Vaultwarden template with automated Cloudflare R2 backups using a three-service architecture: the main password manager, a one-time configurator for rclone setup, and a scheduled backup service.
Key changes:
vaultwarden-with-backuptemplate with pinned image versionsIssues found:
version: "3.8"field at the top of docker-compose.ymlConfidence Score: 4/5
version: "3.8"field which is required by the project's style guide but is a simple one-line fix. All other aspects (meta.json sorting, logo inclusion, environment variables, volume configuration) are correctly implemented.Last reviewed commit: 711cd34
(2/5) Greptile learns from your feedback when you react with thumbs up/down!
Context used:
dashboard- AGENTS.md (source)