After running docker-compose up -d, my Docker logs produce this error:

ERROR r2d2: 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?

I’ve checked docker-compose.yml, lemmy.hjson, /etc/nginx/sites-enabled/lemmy.conf and don’t see anything unusual. Any ideas how to troubleshoot this?

localhost sounds wrong, it should use postgres as hostname (which is the docker container where the database is running).

@suspended@lemmy.ml
creator
link
fedilink
12Y

Never mind. You were correct. It was in the lemmy.hjson file. Thanks!

Support / questions about Lemmy.

  • 0 users online
  • 12 users / day
  • 24 users / week
  • 26 users / month
  • 19 users / 6 months
  • 11 subscribers
  • 140 Posts
  • 444 Comments
  • Modlog