Psgl auth db (#1095)

* feat(cdk-mintd): add dedicated auth database configuration support
This commit is contained in:
thesimplekid
2025-09-21 16:56:12 +01:00
committed by GitHub
parent 075e25682e
commit df2f9d1c2a
9 changed files with 137 additions and 10 deletions

View File

@@ -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}"