diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index a6b89a0..b61ecf8 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -14,6 +14,7 @@ jobs: image: postgres # Provide the password for postgres env: + POSTGRES_HOST: postgres POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres # Set health checks to wait until postgres has started diff --git a/DD.Persistence.App/appsettings.Tests.json b/DD.Persistence.App/appsettings.Tests.json index a6c0bae..5bd5c2e 100644 --- a/DD.Persistence.App/appsettings.Tests.json +++ b/DD.Persistence.App/appsettings.Tests.json @@ -1,6 +1,6 @@ { "DbConnection": { - "Host": "127.0.0.1", + "Host": "postgres", "Port": 5442, "Username": "postgres", "Password": "postgres" diff --git a/DD.Persistence.App/appsettings.json b/DD.Persistence.App/appsettings.json index c1fdf2b..b76f037 100644 --- a/DD.Persistence.App/appsettings.json +++ b/DD.Persistence.App/appsettings.json @@ -6,7 +6,7 @@ } }, "ConnectionStrings": { - "DefaultConnection": "Host=127.0.0.1;Port=5442;Database=persistence;Username=postgres;Password=postgres;Persist Security Info=True" + "DefaultConnection": "Host=postgres;Port=5442;Database=persistence;Username=postgres;Password=postgres;Persist Security Info=True" }, "AllowedHosts": "*", "NeedUseKeyCloak": false,