Commit 2f7fa65
Create postgres user explicitly if $POSTGRES_USER is not "postgres" (#201)
This is because initdb in official PostgreSQL Docker image does not
create postgres user during initialization anymore. Therefore createdb
statement which implicitly uses postgres system user to connect to
the cluster will fail.
See docker-library/postgres@3f585c51 parent 7d96beb commit 2f7fa65
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
0 commit comments