Postgres is no longer starting

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
https://github.com/docker-library/postgres/issues/681
This commit is contained in:
Jamie Alessio 2020-02-16 01:10:45 +00:00 committed by Michal Migurski
parent 4b4217b8be
commit d5fe598a18

View file

@ -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