-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
156 lines (139 loc) · 3.48 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
services:
db:
image: "postgres"
environment:
POSTGRES_PASSWORD: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_HOST_AUTH_METHOD: "password"
ports:
- "5432:5432"
expose:
- "5432"
entrypoint: ["docker-entrypoint.sh", "-c", "shared_buffers=256MB", "-c", "max_connections=1000"]
tutorial:
build:
context: .
target: tutorial
ports:
- "50005:50005"
sample_hello_world:
build:
context: .
target: sample_hello_world
sample_hello_cart:
build:
context: .
target: sample_hello_cart
sample_hello_blazor_server:
build:
context: .
target: sample_hello_blazor_server
ports:
- "5005:5005"
environment:
ASPNETCORE_URLS: "http://0.0.0.0:5005"
ASPNETCORE_ENVIRONMENT: "Development"
Logging__Console__FormatterName: ""
sample_hello_blazor_hybrid:
build:
context: .
target: sample_hello_blazor_hybrid
ports:
- "5005:5005"
environment:
ASPNETCORE_URLS: "http://0.0.0.0:5005"
ASPNETCORE_ENVIRONMENT: "Development"
Logging__Console__FormatterName: ""
sample_blazor:
build:
context: .
target: sample_blazor
ports:
- "5005:5005"
environment:
ASPNETCORE_URLS: "http://0.0.0.0:5005"
ASPNETCORE_ENVIRONMENT: "Development"
Logging__Console__FormatterName: ""
sample_todoapp:
build:
context: .
target: sample_todoapp
ports:
- "5005:5005"
environment:
ASPNETCORE_URLS: "http://0.0.0.0:5005"
ASPNETCORE_ENVIRONMENT: "Development"
Logging__Console__FormatterName: ""
sample_blazor_ws:
build:
context: .
target: sample_blazor_ws
ports:
- "80:80"
environment:
ASPNETCORE_URLS: "http://*:80"
Server__AssumeHttps: "true"
Logging__Console__FormatterName: ""
sample_mini_rpc:
build:
context: .
target: sample_mini_rpc
sample_multi_server_rpc:
build:
context: .
target: sample_multi_server_rpc
sample_mesh_rpc:
build:
context: .
target: sample_mesh_rpc
sample_benchmark:
build:
context: .
target: sample_benchmark
depends_on:
- db
links:
- db
sample_rpc_benchmark:
build:
context: .
target: sample_rpc_benchmark
extra_hosts:
- "host.docker.internal:host-gateway"
# The settings below are matching the settings from grpc_bench for 4 cpus:
# - https://github.com/LesnyRumcajs/grpc_bench
# - https://github.com/LesnyRumcajs/grpc_bench/discussions/441 (the most recent results I could find)
# 'SayHello' is the test that matches the grpc_bench payload.
sample_rpc_benchmark_server:
build:
context: .
target: sample_rpc_benchmark
command: server https://0.0.0.0:443/
expose:
- "443"
deploy:
resources:
limits:
cpus: '4'
sample_rpc_benchmark_calls:
build:
context: .
target: sample_rpc_benchmark
depends_on:
- sample_rpc_benchmark_server
command: client -b calls -w 1000 -cc 20 -n 4 https://sample_rpc_benchmark_server
deploy:
resources:
limits:
cpus: '24'
sample_rpc_benchmark_streams:
build:
context: .
target: sample_rpc_benchmark
depends_on:
- sample_rpc_benchmark_server
command: client -b streams -w 80 -cc 4 -n 4 -l rpc,grpc,signalr,jsonrpc https://sample_rpc_benchmark_server
deploy:
resources:
limits:
cpus: '24'