PI06 i PI06-1. Docker definitions for MSSQL and Postgres. Data seeder/generator for countries and people. Entity Framework example with variants for Postgres and MSSQL
This commit is contained in:
7
docker-definitions/postgres-eventsdb/init/01-roles.sh
Normal file
7
docker-definitions/postgres-eventsdb/init/01-roles.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||
CREATE USER ${APP_DB_USER} WITH PASSWORD '${APP_DB_PASSWORD}';
|
||||
GRANT CONNECT ON DATABASE ${POSTGRES_DB} TO ${APP_DB_USER};
|
||||
EOSQL
|
||||
Reference in New Issue
Block a user