feat: multiple database and user in postgres
All checks were successful
CI / build (push) Successful in 11s
All checks were successful
CI / build (push) Successful in 11s
This commit is contained in:
17
postgres/create_db.sh
Normal file
17
postgres/create_db.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
POSTGRES="psql --username ${POSTGRES_USER}"
|
||||
|
||||
echo "Creating database: ${DB_NAME}"
|
||||
|
||||
$POSTGRES <<EOSQL
|
||||
CREATE DATABASE ${BACKEND_DB} OWNER ${BACKEND_USER};
|
||||
EOSQL
|
||||
|
||||
|
||||
echo "Creating database: ${DB_NAME}"
|
||||
|
||||
$POSTGRES <<EOSQL
|
||||
CREATE DATABASE ${KEYCLOAK_DB} OWNER ${KEYCLOAK_USER};
|
||||
EOSQL
|
Reference in New Issue
Block a user