new: [plausible] add charm

This commit is contained in:
default
2025-05-13 15:20:05 +02:00
parent 69002abb5c
commit 49e2f398c5
13 changed files with 262 additions and 0 deletions

View File

@@ -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:5432/$DBNAME
"
info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access."