Skip to content

Commit

Permalink
Postgres is no longer starting
Browse files Browse the repository at this point in the history
Fails with:
db_1   | Error: Database is uninitialized and superuser password is not specified.
db_1   |        You must specify POSTGRES_PASSWORD for the superuser. Use
db_1   |        "-e POSTGRES_PASSWORD=password" to set it in "docker run".
db_1   |
db_1   |        You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
db_1   |        without a password. This is *not* recommended. See PostgreSQL
db_1   |        documentation about "trust":
db_1   |        https://www.postgresql.org/docs/current/auth-trust.html

Appears to be related to
docker-library/postgres#681
  • Loading branch information
jalessio authored and migurski committed Dec 6, 2020
1 parent 7753173 commit 740caa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
ports:
- "54321:5432"
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: openstreetmap
volumes:
- ./docker-db-data:/var/lib/postgresql/data

0 comments on commit 740caa8

Please sign in to comment.