Browse Source

new: [bitwarden,mongo,nextcloud,rocketchat] added backup relation

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
0k/dev/master
Valentin Lab 4 years ago
parent
commit
bd07ed13b1
  1. 7
      bitwarden/metadata.yml
  2. 18
      mongo/metadata.yml
  3. 5
      nextcloud/metadata.yml
  4. 5
      rocketchat/metadata.yml

7
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
target: !var-expand ${MASTER_BASE_SERVICE_NAME}:80
backup:
constraint: recommended
auto: pair
solves:
backup: "Automatic regular backup"

18
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

5
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"

5
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"
Loading…
Cancel
Save