mrts / docker-postgresql-multiple-databases

Using multiple databases with the official PostgreSQL Docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rights to users

Pavlo-Olshansky opened this issue · comments

commented

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;

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