From a24ab22081e4050c704a55a08c2c58184d5c4221 Mon Sep 17 00:00:00 2001 From: alex narayan Date: Wed, 2 Jun 2021 15:22:06 +0200 Subject: [PATCH] Add fix for recent versions of Postgres that require a password be set or to explicitly trust the host For dev and for simplicity we set the POSTGRES_HOST_AUTH_METHOD=trust env var to not have to provide a password --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 1d994b7..59e939e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,8 @@ services: image: postgres volumes: - data:/var/lib/postgresql/data + environment: + POSTGRES_HOST_AUTH_METHOD: trust web: command: unicorn -c config/unicorn.rb entrypoint: bin/wait-for-it.sh db:5432 -s --