当我运行docker-compose时,出现错误

时间:2020-06-09 01:07:34

标签: ruby-on-rails

enter image description here 我无法将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? 

0 个答案:

没有答案