D•Scribe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
sunwoo1524@lemmy.world to Docker@lemmy.worldEnglish · 2 years ago

Connection to server at "127.0.0.1", port 5432 failed: Connection refused

message-square
message-square
0
fedilink
1
message-square

Connection to server at "127.0.0.1", port 5432 failed: Connection refused

sunwoo1524@lemmy.world to Docker@lemmy.worldEnglish · 2 years ago
message-square
0
fedilink

FastAPI container fails to connect to PostgreSQL.
However, the PostgreSQL container is running well and accessible.
I don’t know why this problem is happening.
Here is gist link of Dockerfile, docker-compose.yaml and log when docker-compose is run. https://gist.github.com/sunwoo1524/9f75b4d3fd295c9829705e23a3b8094d

alert-triangle
You must log in or register to comment.

Docker@lemmy.world

docker@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !docker@lemmy.world
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 12 users / day
  • 12 users / week
  • 12 users / month
  • 12 users / 6 months
  • 0 local subscribers
  • 478 subscribers
  • 18 Posts
  • 0 Comments
  • Modlog
  • mods:
  • moosearedeer@lemmy.world
  • UI: unknown version
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org