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.
21 lines
413 B
21 lines
413 B
#!/bin/bash
|
|
|
|
. lib/common
|
|
|
|
set -e
|
|
|
|
PASSWORD="$(relation-get password)"
|
|
USER="$(relation-get user)"
|
|
DBNAME="$(relation-get dbname)"
|
|
|
|
config-add "\
|
|
services:
|
|
$MASTER_BASE_SERVICE_NAME:
|
|
environment:
|
|
POSTGRES_HOST: $MASTER_TARGET_SERVICE_NAME
|
|
POSTGRES_DB: $DBNAME
|
|
POSTGRES_PASSWORD: $PASSWORD
|
|
POSTGRES_USER: $USER
|
|
"
|
|
|
|
info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access."
|