I’m running Gogs using docker with Postgres 10.3 as the DB which is also running in Docker. I’m using the latest Gogs docker image as of Sept 7th, 2020. The ImageID is 93198a4bd628.
As soon as I upgraded to this latest image, Gogs is not able to connect to the DB anymore. The Postgres logs show this,
2020-09-07 14:25:28.427 UTC  FATAL: password authentication failed for user “gogs”
2020-09-07 14:25:28.427 UTC  DETAIL: Password does not match for user “gogs”.
Connection matched pg_hba.conf line 95: “host all all all md5”
Using DBeaver I tested connecting to the DB as the gogs user and it works. I changed the password and reconfirmed connectivity using DBeaver but the Gogs docker container can’t connect. The same error appears in the Postgres logs.
Here’s the Gogs config portion for the DB
DB_TYPE = postgres
HOST = 192.168.0.10:5432
NAME = gogs
USER = gogs
PASSWD = secret123
SSL_MODE = disable
PATH = data/gogs.db
Any help and suggestions are appreciated.