mrts/docker-postgresql-multiple-databases

Rights to users

Pavlo-Olshansky opened this issue · 1 comments

GRANT ALL PRIVILEGES ON DATABASE $database TO $database;

Is that should be a user, not database ? Like this:
GRANT ALL PRIVILEGES ON DATABASE $database TO $POSTGRES_USER;
Not like this:
GRANT ALL PRIVILEGES ON DATABASE $database TO $database;

mrts commented

The user $database is created on line 10, so this is intentional.