Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Update Postgres instructions for Rails Testing #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update Postgres instructions for Rails Testing #66

wants to merge 1 commit into from

Conversation

mheap
Copy link

@mheap mheap commented Apr 7, 2020

The default Postgres image has changed and without any env variables the healthcheck will never pass.

You need to set POSTGRES_USER and POSTGRES_DB, and may choose to set either POSTGRES_PASSWORD or POSTGRES_HOST_AUTH_METHOD. If you choose to set a password, your Rails test config must specify that password. Alternatively, you can set POSTGRES_HOST_AUTH_METHOD=trust to allow all local connections without a password.

See docker-library/postgres@42ce743 for more context

The default Postgres image has changed and without any `env` variables the healthcheck will never pass.

You need to set `POSTGRES_USER` and `POSTGRES_DB`, and may choose to set either `POSTGRES_PASSWORD` or `POSTGRES_HOST_AUTH_METHOD`. If you choose to set a password, your Rails test config must specify that password. Alternatively, you can set `POSTGRES_HOST_AUTH_METHOD=trust` to allow all local connections without a password.

See docker-library/postgres@42ce743 for more context
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant