https://fed.brid.gy
so I added both connection strings into the api's appsettings.json
and environment detection logic by the Docker variable in the api's Program.cs part by which the right string is chosen
heh the console logging added earlier came in handy
#docker #devops #dotnet #postgresql #buildinpublic
so I added both connection strings into the api's appsettings.json
and environment detection logic by the Docker variable in the api's Program.cs part by which the right string is chosen
heh the console logging added earlier came in handy
#docker #devops #dotnet #postgresql #buildinpublic
turned out that postgres connection string was the culprit. its Host part had value "localhost". it made the api, to no avail, search for DBMS within the container
the right value is host.docker.internal
also re-ran the container with port mappings
#docker #postgresql #devops #buildinpublic
turned out that postgres connection string was the culprit. its Host part had value "localhost". it made the api, to no avail, search for DBMS within the container
the right value is host.docker.internal
also re-ran the container with port mappings
#docker #postgresql #devops #buildinpublic