this repo has no description
1services:
2 valkey:
3 image: valkey/valkey:alpine
4 restart: unless-stopped
5 networks:
6 - backend
7 ports:
8 - "6379:6379"
9 deploy:
10 resources:
11 limits:
12 cpus: "0.15"
13 memory: "30MB"
14 volumes:
15 - redis-data:/data
16
17 api1: &app # image: pedrohcorrea/rinha-backend-2025-gleam:latest
18 build:
19 context: .
20 container_name: api1
21 networks:
22 - backend
23 - payment-processor
24 restart: always
25 environment:
26 REDIS_CONN: valkey
27 PROVIDERS: "http://payment-processor-default:8080,http://payment-processor-fallback:8080"
28 PROCESSOR_TIME: 40
29 depends_on:
30 - valkey
31 deploy:
32 resources:
33 limits:
34 cpus: "0.8"
35 memory: "235MB"
36
37 api2:
38 <<: *app
39 container_name: api2
40 environment:
41 REDIS_CONN: valkey
42 deploy:
43 resources:
44 limits:
45 cpus: "0.4"
46 memory: "75MB"
47
48 nginx:
49 image: nginx:1.29.0-alpine
50 volumes:
51 - $PWD/config/nginx.conf:/etc/nginx/nginx.conf:ro
52 ports:
53 - 9999:9999
54 depends_on:
55 - api1
56 - api2
57 networks:
58 - backend
59 deploy:
60 resources:
61 limits:
62 cpus: "0.15"
63 memory: "10MB"
64
65volumes:
66 redis-data:
67
68networks:
69 backend:
70 driver: bridge
71 payment-processor:
72 external: true