-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.bench.yml
More file actions
53 lines (51 loc) · 1.4 KB
/
docker-compose.bench.yml
File metadata and controls
53 lines (51 loc) · 1.4 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
services:
pdfbro:
build:
context: .
dockerfile: Dockerfile
target: pdfbro
container_name: bench-pdfbro
ports:
- "3001:3000"
deploy:
resources:
limits:
cpus: "2"
memory: 2g
environment:
# Bench-only quiet default. Per-request tracing on a tight (~10 ms)
# workload like pdfengines-merge eats ~30–50% of the request budget
# at 300+ RPS. Override on the CLI (`RUST_LOG=info docker compose
# up -d`) when you want to watch what the server is doing.
RUST_LOG: error
gotenberg:
image: gotenberg/gotenberg:8
container_name: bench-gotenberg
command:
- gotenberg
- --chromium-allow-list=.*
# Match pdfbro's bench-side quiet default. Gotenberg's stock
# `info` logs every multipart upload + every conversion which
# also taxes the tight workloads. Override with `--log-level=info`
# in your local shell if you need request-level logs.
- --log-level=error
- --api-disable-health-check-logging
ports:
- "3002:3000"
deploy:
resources:
limits:
cpus: "2"
memory: 2g
fixture-server:
image: nginx:alpine
container_name: bench-fixture
ports:
- "18080:80"
volumes:
- ./bench/fixtures:/usr/share/nginx/html:ro
deploy:
resources:
limits:
cpus: "0.5"
memory: 256m