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

Postgres 9.6 needs password #62

Open
dirkpetersen opened this issue Mar 21, 2020 · 3 comments
Open

Postgres 9.6 needs password #62

dirkpetersen opened this issue Mar 21, 2020 · 3 comments

Comments

@dirkpetersen
Copy link

postgres complains with the default config:

docker-compose up postgres
Creating network "compose-services_devnet" with the default driver
Creating compose-services_postgres_1 ... done
Attaching to compose-services_postgres_1
postgres_1           | Error: Database is uninitialized and superuser password is not specified.
postgres_1           |        You must specify POSTGRES_PASSWORD to a non-empty value for the
postgres_1           |        superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run

fix in docker-compose.yml:

  postgres:
    environment:
      - POSTGRES_PASSWORD=paaaaaaaaaaaaassword

@dirkpetersen
Copy link
Author

after this arborist still fails, need to set the password via psql

ALTER USER arborist_user WITH PASSWORD 'arborist_pass';

@rewt
Copy link

rewt commented Jun 2, 2020

@dirkpetersen you get this working?

@bobaekang
Copy link

@rewt FYI, I was able to get past this issue by adding the following lines to ./scripts/postgres_init.sql:

CREATE USER arborist_user;
ALTER USER arborist_user WITH PASSWORD 'arborist_pass';
ALTER USER arborist_user WITH SUPERUSER;

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

3 participants