Skip to content

feat: add vaultwarden-with-backup template#725

Open
CarlosHugoRodriguezC wants to merge 2 commits intoDokploy:canaryfrom
CarlosHugoRodriguezC:feat/vaultwarden-with-backup
Open

feat: add vaultwarden-with-backup template#725
CarlosHugoRodriguezC wants to merge 2 commits intoDokploy:canaryfrom
CarlosHugoRodriguezC:feat/vaultwarden-with-backup

Conversation

@CarlosHugoRodriguezC
Copy link

@CarlosHugoRodriguezC CarlosHugoRodriguezC commented Feb 23, 2026

New Template: vaultwarden-with-backup

Adds a Vaultwarden template with automated backups to Cloudflare R2 storage.

Services

  • vaultwarden (vaultwarden/server:1.34.3) — Password manager
  • configurator (alpine:3.20) — Generates rclone.conf for Cloudflare R2 (runs once and exits)
  • backup (ttionya/vaultwarden-backup:1.26.2) — Scheduled backups via cron

Features

  • Auto-generated admin token and backup ZIP password
  • Configurable backup schedule (default: daily at 5 AM UTC)
  • Configurable backup retention (default: 30 days)
  • Full SMTP configuration for email notifications/invitations
  • Configurable timezone (default: UTC)
  • All Cloudflare R2 credentials exposed as environment variables

Checklist

  • All Docker images pinned to specific versions (no latest)
  • All images verified with docker manifest inspect
  • No ports, container_name, or networks in docker-compose.yml
  • meta.json entry added and processed with dedupe-and-sort-meta.js
  • Logo file included
  • Template ID matches folder name

Greptile 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:

  • New vaultwarden-with-backup template with pinned image versions
  • Auto-generated admin token and backup encryption password
  • Configurable backup schedule (cron) and retention period
  • Full SMTP support for email notifications
  • Cloudflare R2 integration for remote backups
  • Proper meta.json entry with sorted placement

Issues found:

  • Missing required version: "3.8" field at the top of docker-compose.yml

Confidence Score: 4/5

  • This PR is safe to merge after fixing the missing version field
  • The template follows best practices with pinned versions, proper secret generation, and good service architecture. The only issue is a missing 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.
  • blueprints/vaultwarden-with-backup/docker-compose.yml requires the version field to be added

Last reviewed commit: 711cd34

(2/5) Greptile learns from your feedback when you react with thumbs up/down!

Context used:

  • Context from dashboard - AGENTS.md (source)

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.
Copilot AI review requested due to automatic review settings February 23, 2026 21:58
@github-actions
Copy link

github-actions bot commented Feb 23, 2026

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
templates ✅ Ready (View Log) Visit Preview 1584805

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@@ -0,0 +1,69 @@
services:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing version: "3.8" at the top of the file (required by style guide)

Suggested change
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!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

Comment on lines +1 to +2
services:
vaultwarden:
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants