In the docker-compose deployement the db can be accessed by entering the postgres container and connecting to the db without password thank to the "POSTGRES_HOST_AUTH_METHOD=trust" option :
sudo docker exec -it ea78e48f47d5 bash ; psql -U postgres.
But this doesn't work when trying to connect to postgres from the localhost :
psql -h 127.0.0.1 -p 5432 -U postgres
Password for user postgres:
psql: error: fe_sendauth: no password supplied
How I can connect to the postgres db from my local computeur ?