-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.7 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.7 KB
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
services:
postgres:
image: postgres:16
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: bench
ports:
- "5432:5432"
# redis:
# image: redis:7
# ports:
# - "6379:6379"
servera:
build:
context: .
dockerfile: benchmarks/PostgreSignalR.Benchmarks.Server/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Production
Logging__LogLevel__Default: Warning
BACKPLANE: ${BACKPLANE:-none}
# ConnectionStrings__Redis: redis:6379
ConnectionStrings__Postgres: Host=postgres;Database=bench;Username=postgres;Password=postgres
MAKETABLE: true
depends_on:
- postgres
# - redis
ports:
- "8081:8080"
serverb:
build:
context: .
dockerfile: benchmarks/PostgreSignalR.Benchmarks.Server/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Production
Logging__LogLevel__Default: Warning
BACKPLANE: ${BACKPLANE:-none}
# ConnectionStrings__Redis: redis:6379
ConnectionStrings__Postgres: Host=postgres;Database=bench;Username=postgres;Password=postgres
depends_on:
- postgres
# - redis
ports:
- "8082:8080"
driver:
build:
context: .
dockerfile: benchmarks/PostgreSignalR.Benchmarks/Dockerfile
environment:
SERVER_A: http://servera:8080
SERVER_B: http://serverb:8080
MODE: ${MODE:-single}
CLIENTS: ${CLIENTS:-500}
PUBLISH_COUNT: ${PUBLISH_COUNT:-20000}
CONCURRENCY: ${CONCURRENCY:-128}
PAYLOAD_BYTES: ${PAYLOAD_BYTES:-128}
WARMUP_SECONDS: ${WARMUP_SECONDS:-10}
MEASURE_SECONDS: ${MEASURE_SECONDS:-30}
depends_on:
- servera
- serverb