Browse Source

new: [docuseal] new charm

boris/matomo
Boris Gallet 1 year ago
committed by Valentin Lab
parent
commit
6d8f295f64
  1. 5
      docuseal/README.org
  2. 17
      docuseal/hooks/postgres_database-relation-joined
  3. 35
      docuseal/metadata.yml

5
docuseal/README.org

@ -0,0 +1,5 @@
# -*- ispell-local-dictionary: "english" -*-
* Info
From: https://github.com/docusealco/docuseal

17
docuseal/hooks/postgres_database-relation-joined

@ -0,0 +1,17 @@
#!/bin/bash
set -e
PASSWORD="$(relation-get password)"
USER="$(relation-get user)"
DBNAME="$(relation-get dbname)"
config-add "\
services:
$MASTER_BASE_SERVICE_NAME:
environment:
DATABASE_URL: postgres://$USER:$PASSWORD@$TARGET_SERVICE_NAME/$DBNAME
"
info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access."

35
docuseal/metadata.yml

@ -0,0 +1,35 @@
docker-image: docker.0k.io/docuseal:1.2.8
data-resources:
- /data
uses:
postgres-database:
#constraint: required | recommended | optional
#auto: pair | summon | none ## default: pair
constraint: required
auto: summon
solves:
database: "main storage"
web-proxy:
#constraint: required | recommended | optional
#auto: pair | summon | none ## default: pair
constraint: recommended
auto: pair
solves:
proxy: "Public access"
default-options:
target: !var-expand ${MASTER_BASE_SERVICE_NAME}:3000
backup:
constraint: recommended
auto: pair
solves:
backup: "Automatic regular backup"
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
#exclude-patterns:
# - "/var/lib/odoo/sessions/"
Loading…
Cancel
Save