forked from 0k/0k-charms
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
352 B
18 lines
352 B
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
PASSWORD="$(relation-get password)"
|
|
USER="$(relation-get user)"
|
|
DBNAME="$(relation-get dbname)"
|
|
|
|
config-add "\
|
|
services:
|
|
$MASTER_BASE_SERVICE_NAME:
|
|
environment:
|
|
DB_VENDOR: postgres
|
|
DB_ADDR: \"$MASTER_TARGET_SERVICE_NAME\"
|
|
DB_DATABASE: \"$DBNAME\"
|
|
DB_PASSWORD: \"$PASSWORD\"
|
|
DB_USER: \"$USER\"
|
|
"
|