File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
src/Dotnet5.GraphQL3.Store.WebAPI/GraphQL/DependencyInjection Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
version : " 3.7"
2
2
3
3
services :
4
-
5
4
mssql :
6
5
container_name : mssql
7
6
image : mcr.microsoft.com/mssql/server
@@ -10,6 +9,12 @@ services:
10
9
environment :
11
10
SA_PASSWORD : " !MyComplexPassword"
12
11
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
13
18
networks :
14
19
- graphqlstore
15
20
@@ -23,10 +28,11 @@ services:
23
28
- ASPNETCORE_URLS=http://*:5000
24
29
ports :
25
30
- 5000:5000
31
+ depends_on :
32
+ mssql :
33
+ condition : service_healthy
26
34
networks :
27
35
- graphqlstore
28
- depends_on :
29
- - mssql
30
36
31
37
webmvc :
32
38
container_name : webmvc
@@ -38,10 +44,10 @@ services:
38
44
- ASPNETCORE_URLS=http://*:7000
39
45
ports :
40
46
- 7000:7000
41
- networks :
42
- - graphqlstore
43
47
depends_on :
44
48
- webapi
49
+ networks :
50
+ - graphqlstore
45
51
46
52
networks :
47
53
graphqlstore :
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public static IGraphQLBuilder AddApplicationGraphQL(this IServiceCollection serv
24
24
var logger = provider . GetRequiredService < ILogger < Startup > > ( ) ;
25
25
options . UnhandledExceptionDelegate = ctx => logger . LogError ( "{Error} occured" , ctx . OriginalException . Message ) ;
26
26
} )
27
- . AddSystemTextJson ( serializerSettings => serializerSettings . IgnoreNullValues = true )
27
+ . AddSystemTextJson ( deserializerSettings => { } , serializerSettings => { } )
28
28
. AddWebSockets ( )
29
29
. AddDataLoader ( )
30
30
. AddGraphTypes ( typeof ( StoreSchema ) ) ;
You can’t perform that action at this time.
0 commit comments