diff --git a/bitwarden/metadata.yml b/bitwarden/metadata.yml index fc97b6d..473e6b0 100644 --- a/bitwarden/metadata.yml +++ b/bitwarden/metadata.yml @@ -12,4 +12,9 @@ uses: default-options: ## We need to specify here the port as it can't be infered ## easily as there are 2 ports exposed by the image. - target: !var-expand ${MASTER_BASE_SERVICE_NAME}:80 \ No newline at end of file + target: !var-expand ${MASTER_BASE_SERVICE_NAME}:80 + backup: + constraint: recommended + auto: pair + solves: + backup: "Automatic regular backup" diff --git a/mongo/metadata.yml b/mongo/metadata.yml index 1cc47fd..b1bee6c 100644 --- a/mongo/metadata.yml +++ b/mongo/metadata.yml @@ -15,3 +15,21 @@ uses: backup: "Automatic regular backups" default-options: schedule: "47 * * * *" ## schedule backup every hour + ## This one is useful only if previous relation is used + backup: + constraint: optional + auto: pair + solves: + backup: "Automatic regular backups of dumps" + default-options: + ## First pattern matching wins, no pattern matching includes. + ## include-patterns are checked first, then exclude-patterns + ## Patterns rules: + ## - ending / for directory + ## - '*' authorized + ## - must start with a '/', will start from $SERVICE_DATASTORE + # include-patterns: + # - /var/backups/mongo/ + exclude-patterns: + - "/var/lib/" ## mongo working data files + - "/var/backups/mongo/*.inprogress/" ## database dump in progress diff --git a/nextcloud/metadata.yml b/nextcloud/metadata.yml index a622ae1..309dc45 100644 --- a/nextcloud/metadata.yml +++ b/nextcloud/metadata.yml @@ -23,3 +23,8 @@ uses: proxy: "Public access" default-options: target: !var-expand ${MASTER_BASE_SERVICE_NAME}:80 + backup: + constraint: recommended + auto: pair + solves: + backup: "Automatic regular backup" diff --git a/rocketchat/metadata.yml b/rocketchat/metadata.yml index 654fe56..e362c52 100644 --- a/rocketchat/metadata.yml +++ b/rocketchat/metadata.yml @@ -30,4 +30,9 @@ uses: RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR] RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC] RewriteRule .* ws://${MASTER_BASE_SERVICE_NAME}:3000%{REQUEST_URI} [P,QSA,L] + backup: + constraint: recommended + auto: pair + solves: + backup: "Automatic regular backup"