我无法将Rails应用程序与PostgreSQL连接。当运行docker-compose运行--rm web bin / rake db:migrate时,出现以下错误。
PG::ConnectionBad: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?