feat: multiple database and user in postgres
All checks were successful
CI / build (push) Successful in 11s

This commit is contained in:
Pierre Tellier
2025-02-11 11:07:45 +01:00
parent d2cc3e00e1
commit eed4e6f855
10 changed files with 90 additions and 29 deletions

17
postgres/create_db.sh Normal file
View 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