-
Notifications
You must be signed in to change notification settings - Fork 928
/
docker-compose.yaml
79 lines (76 loc) · 1.67 KB
/
docker-compose.yaml
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
# volumes:
# db-data:
networks:
default:
driver: bridge
name: rinha-nginx-2024q1
services:
loadbalancer:
image: nginx:latest
ports:
- "9999:9999"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- backend1
- backend2
deploy:
resources:
limits:
cpus: "0.2"
memory: "50MB"
db:
image: ghcr.io/lucasew/playground-rinha202401-tigerbeetle:20240222
# build:
# dockerfile: ./Dockerfile.tigerbeetle-lowram
entrypoint: /tigerbeetle-start.sh
deploy:
resources:
limits:
cpus: "0.7"
memory: "400MB"
security_opt:
- seccomp:unconfined
# deploy:
# resources:
# limits:
# memory: 1024M
volumes:
# - db-data:/data
- ./tigerbeetle-start.sh:/tigerbeetle-start.sh
backend1:
image: ghcr.io/lucasew/playground-rinha202401-backend:20240222
restart: always
environment:
- "TB_ADDRESS=db:3000"
- "TIGERBEETLE_MAX_CONCURRENCY=320"
- GOGC=off
deploy:
resources:
limits:
cpus: "0.3"
memory: "50MB"
security_opt:
- seccomp:unconfined
# build:
# dockerfile: ./Dockerfile.go-backend
depends_on:
- db
backend2:
image: ghcr.io/lucasew/playground-rinha202401-backend:20240222
restart: always
environment:
- "TB_ADDRESS=db:3000"
- "TIGERBEETLE_MAX_CONCURRENCY=320"
- GOGC=off
deploy:
resources:
limits:
cpus: "0.3"
memory: "50MB"
security_opt:
- seccomp:unconfined
# build:
# dockerfile: ./Dockerfile.go-backend
depends_on:
- db