blob: ce87185f9f1106c8201c7ef9371bb6ef5f38289d (
plain)
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
|
services:
postgres:
image: postgres:15-alpine
container_name: postgres
environment:
POSTGRES_DB: payment
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- rinha-network
api01:
image: backend-native
container_name: api01
environment:
DB: payment
DB_USER: postgres
DB_PASSWORD: postgres
depends_on:
- postgres
networks:
- rinha-network
- payment-processor
api02:
image: backend-native
container_name: api02
environment:
DB: payment
DB_USER: postgres
DB_PASSWORD: postgres
depends_on:
- postgres
networks:
- rinha-network
- payment-processor
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "9999:9999"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- api01
- api02
networks:
- rinha-network
volumes:
postgres_data:
networks:
rinha-network:
driver: bridge
payment-processor:
external: true
|