Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tebrizetayi opened this issue May 17, 2020 · 1 comment

Comments

@tebrizetayi
Copy link
Contributor

tebrizetayi commented May 17, 2020

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 added a commit to tebrizetayi/go-oauth2-server that referenced this issue May 17, 2020
@tebrizetayi tebrizetayi reopened this May 17, 2020
@tebrizetayi tebrizetayi changed the title Docker compose: Database is uninitialized and superuser password is not specified. xsx May 17, 2020
@tebrizetayi tebrizetayi changed the title xsx Docker compose: Database is uninitialized and superuser password is not specified. #67 May 17, 2020
@tebrizetayi tebrizetayi changed the title Docker compose: Database is uninitialized and superuser password is not specified. #67 Docker compose: Database is uninitialized and superuser password is not specified. May 17, 2020
@Fluoxetine-my
Copy link

add this in ur docker-compose.yml
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants