Skip to content

Commit f9642c1

Browse files
jalessiomigurski
authored andcommitted
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 docker-library/postgres#681
1 parent 1e0edff commit f9642c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ services:
1919
ports:
2020
- "54321:5432"
2121
environment:
22+
POSTGRES_HOST_AUTH_METHOD: trust
2223
POSTGRES_DB: openstreetmap
2324
volumes:
2425
- ./docker-db-data:/var/lib/postgresql/data

0 commit comments

Comments
 (0)