From d5fe598a18eb04b10f4ac29f22a1bccb79185ad4 Mon Sep 17 00:00:00 2001 From: Jamie Alessio Date: Sun, 16 Feb 2020 01:10:45 +0000 Subject: [PATCH] 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 --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 70730febf..dbdd62731 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 -- 2.43.2