go-oauth2-server icon indicating copy to clipboard operation
go-oauth2-server copied to clipboard

Docker compose: Database is uninitialized and superuser password is not specified.

Open tebrizetayi opened this issue 5 years ago • 1 comments

When you want to run it using docker-compose , it gives error

Error: Database is uninitialized and superuser password is not specified. You must specify POSTGRES_PASSWORD to a non-empty value for the superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run". You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all connections without a password. This is not recommended.

See PostgreSQL documentation about "trust": https://www.postgresql.org/docs/current/auth-trust.html

tebrizetayi avatar May 17 '20 10:05 tebrizetayi