Skip to content

Commit 83d1164

Browse files
Merge pull request #115 from AntonioFalcao/feature/adjusts
Feature/adjusts
2 parents 4d80fa2 + fdeb36c commit 83d1164

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

docker-compose.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
version: "3.7"
22

33
services:
4-
54
mssql:
65
container_name: mssql
76
image: mcr.microsoft.com/mssql/server
@@ -10,6 +9,12 @@ services:
109
environment:
1110
SA_PASSWORD: "!MyComplexPassword"
1211
ACCEPT_EULA: "Y"
12+
healthcheck:
13+
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$$SA_PASSWORD" -Q "SELECT 1" || exit 1
14+
interval: 10s
15+
timeout: 3s
16+
retries: 10
17+
start_period: 10s
1318
networks:
1419
- graphqlstore
1520

@@ -23,10 +28,11 @@ services:
2328
- ASPNETCORE_URLS=http://*:5000
2429
ports:
2530
- 5000:5000
31+
depends_on:
32+
mssql:
33+
condition: service_healthy
2634
networks:
2735
- graphqlstore
28-
depends_on:
29-
- mssql
3036

3137
webmvc:
3238
container_name: webmvc
@@ -38,10 +44,10 @@ services:
3844
- ASPNETCORE_URLS=http://*:7000
3945
ports:
4046
- 7000:7000
41-
networks:
42-
- graphqlstore
4347
depends_on:
4448
- webapi
49+
networks:
50+
- graphqlstore
4551

4652
networks:
4753
graphqlstore:

src/Dotnet5.GraphQL3.Store.WebAPI/GraphQL/DependencyInjection/ConfigureServices.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static IGraphQLBuilder AddApplicationGraphQL(this IServiceCollection serv
2424
var logger = provider.GetRequiredService<ILogger<Startup>>();
2525
options.UnhandledExceptionDelegate = ctx => logger.LogError("{Error} occured", ctx.OriginalException.Message);
2626
})
27-
.AddSystemTextJson(serializerSettings => serializerSettings.IgnoreNullValues = true)
27+
.AddSystemTextJson(deserializerSettings => { }, serializerSettings => { })
2828
.AddWebSockets()
2929
.AddDataLoader()
3030
.AddGraphTypes(typeof(StoreSchema));

0 commit comments

Comments
 (0)