[error] Postgrex.Protocol (#PID<0.137.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (top2.nearest.of.my-pleroma-app-db.internal:5432): non-existing domain - :nxdomain

DISREGARD.

I hadn’t fully read/understood one of the comments I found in a different thread: Connected Postgres DB Throws Domain not found error - #22 by andreyuhai

The Ecto repo needs to be configured to accept IPv6 connetions, like so:

config :pleroma, Pleroma.Repo,
  adapter: Ecto.Adapters.Postgres,
  username: System.get_env("DB_USER", "pleroma"),
  password: System.fetch_env!("DB_PASS"),
  database: System.get_env("DB_NAME", "pleroma"),
  hostname: System.get_env("DB_HOST", "db"),
  pool_size: 10,
  socket_options: [:inet6] # THIS IS THE THING

Neither Pleroma nor the community-maintained Dockerfile I was using had this set. :man_facepalming:

1 Like