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.
19 lines
399 B
19 lines
399 B
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
PASSWORD="$(relation-get password)"
|
|
USER="$(relation-get user)"
|
|
DBNAME="$(relation-get dbname)"
|
|
HOST="$(relation-get host)"
|
|
PORT="$(relation-get port)"
|
|
|
|
config-add "\
|
|
services:
|
|
$MASTER_BASE_SERVICE_NAME:
|
|
environment:
|
|
KC_DB_URL: \"jdbc:postgresql://$HOST:$PORT/$DBNAME\"
|
|
KC_DB_USERNAME: \"$USER\"
|
|
KC_DB_PASSWORD: \"$PASSWORD\"
|
|
KC_DB: \"postgres\"
|
|
"
|