[x]):Hello,
I'd normally not open an issue for this but I am at a loss. I've been able to run gitea optimally in this setup, I don't know when it broke because I haven't been using gitea for a while, but my database can not be connected for some reason. It's a postgres running on the host the docker image is on, which has worked fine for almost a year. Gitea also worked perfectly otherwise.
Since I have no clue where to go from here (I've tried all in my might to solve this myself.) I'm very much open to questions regarding my setup.
127.0.0.1 is different from inside the docker container vs 127.0.0.1 on the host.
you need to use linked postgresql container name to connect to database from gitea for example postgres:5432
Oh yeah, I should have mentioned. That was the previous setup which resulted in a different error of the machine unable to find the database on a wildly different port, port 53 for some reason. And I did doublecheck the config.
port 53 is DNS which means that postgres is probably not what you are using for hostname. Try plugging in the IP of the DB server instead. For instance on my home network my DB is at 192.168.1.201, ipconfig is a command you can run to find what the IP is.
@Aetheros I'm going to close this issue now, however please feel free to re-open it if needed.
Most helpful comment
you need to use linked postgresql container name to connect to database from gitea for example
postgres:5432