-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathdocker-compose.yml
72 lines (68 loc) · 1.6 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
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.5"
services:
rinha1: &api
image: lubien/backend-fight-2024-q1:v0.0.2
hostname: rinha1
environment:
- DB_HOSTNAME=db
- PORT=3000
- SECRET_KEY_BASE=1FAGGKyEC9U+FODc+Jf3apLW+ntvEiT3uAxP4MTuAsZEgr4Z9GQ5X+60UeMXTQQl
- RELEASE_COOKIE=PGL67P4KHY62MQBXIOTTJ3OTHQB52LEHKW57WRXUH5ZQDWIS42CQ====
- DATABASE_PATH=/data/prod.db
- RINHA_APP_NAME=rinha1
- IP_V4_ADDRESS=192.0.1.11
- PRIMARY_REGION=primary
- MY_REGION=primary
ports:
- "3001:3000"
deploy:
resources:
limits:
cpus: "0.85"
memory: "256MB"
networks:
erlcluster:
ipv4_address: 192.0.1.11
rinha2:
<<: *api
hostname: rinha2
environment:
- PORT=3000
- SECRET_KEY_BASE=1FAGGKyEC9U+FODc+Jf3apLW+ntvEiT3uAxP4MTuAsZEgr4Z9GQ5X+60UeMXTQQl
- RELEASE_COOKIE=PGL67P4KHY62MQBXIOTTJ3OTHQB52LEHKW57WRXUH5ZQDWIS42CQ====
- RINHA_APP_NAME=rinha2
- IP_V4_ADDRESS=192.0.1.12
- PRIMARY_REGION=primary
- MY_REGION=replica
ports:
- "3002:3000"
deploy:
resources:
limits:
cpus: "0.30"
memory: "147MB"
networks:
erlcluster:
ipv4_address: 192.0.1.12
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- rinha1
- rinha2
ports:
- "9999:9999"
deploy:
resources:
limits:
cpus: "0.35"
memory: "147MB"
networks:
erlcluster:
networks:
erlcluster:
ipam:
driver: default
config:
- subnet: "192.0.1.0/24"