Docker - Rails app cannot connect to linked Postgres container (doesn't seem to be running)

前端 未结 1 1393
慢半拍i
慢半拍i 2021-01-12 13:45

I\'ve been following this guide of how to set up a Rails Development Environment using Docker: Setting Up A Rails Development Environment Using Docker.

I\'ve hit a f

相关标签:
1条回答
  • 2021-01-12 14:08

    You try to connect to localhost:5432 in other words you try to connect to the web container, but your point is db. Just specify Database host in your application like db

    0 讨论(0)
提交回复
热议问题