mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-18 21:25:09 +01:00
Psgl auth db (#1095)
* feat(cdk-mintd): add dedicated auth database configuration support
This commit is contained in:
@@ -27,4 +27,11 @@ docker exec -e PGPASSWORD="${DB_PASS}" "${CONTAINER_NAME}" \
|
||||
docker exec -e PGPASSWORD="${DB_PASS}" "${CONTAINER_NAME}" \
|
||||
psql -U "${DB_USER}" -d "${DB_NAME}" -c "CREATE DATABASE mintdb_auth;"
|
||||
|
||||
# Export environment variables for both main and auth databases
|
||||
export DATABASE_URL="host=localhost user=${DB_USER} password=${DB_PASS} dbname=${DB_NAME} port=${DB_PORT}"
|
||||
export CDK_MINTD_POSTGRES_URL="postgresql://${DB_USER}:${DB_PASS}@localhost:${DB_PORT}/mintdb"
|
||||
export CDK_MINTD_AUTH_POSTGRES_URL="postgresql://${DB_USER}:${DB_PASS}@localhost:${DB_PORT}/mintdb_auth"
|
||||
|
||||
echo "Database URLs configured:"
|
||||
echo "Main database: ${CDK_MINTD_POSTGRES_URL}"
|
||||
echo "Auth database: ${CDK_MINTD_AUTH_POSTGRES_URL}"
|
||||
|
||||
Reference in New Issue
Block a user