(Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user “postgres”

I was getting this error when trying to access docker-based postgres from locally compiled phoenix app. The issue was the presence of an another running postgres service (locally on windows). Stopping local postgres resolved the issue.