-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.21 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
version: "3.7"
services:
crdb:
hostname: crdb
image: cockroachdb/cockroach:v21.2.17
command: start-single-node --store=cockroach-rinha-data --cluster-name=rinha-backend-cluster --insecure
ports:
- "26257:26257"
networks:
- rinha_backend_network
deploy:
resources:
limits:
cpus: "0.60"
memory: "260MB"
api1: &app
image: bourguignon/rinha-backend-2024-q1-java-micronaut:0.1
hostname: api1
restart: unless-stopped
environment:
- JDBC_URL=jdbc:postgresql://crdb:26257/postgres
networks:
- rinha_backend_network
depends_on:
- crdb
deploy:
resources:
limits:
cpus: "0.40"
memory: "140MB"
api2:
<<: *app
hostname: api2
environment:
- JDBC_URL=jdbc:postgresql://crdb:26257/postgres
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- api1
- api2
ports:
- "9999:9999"
networks:
- rinha_backend_network
deploy:
resources:
limits:
cpus: "0.10"
memory: "10MB"
networks:
rinha_backend_network:
driver: bridge
name: rinha_backend_network