-
Notifications
You must be signed in to change notification settings - Fork 923
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.3 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
version: '3'
services:
postgresdb:
image: postgres
environment:
POSTGRES_DB: rinha
POSTGRES_USER: rinha
POSTGRES_PASSWORD: rinha
command: postgres -c checkpoint_timeout=600 -c max_wal_size=4096 -c synchronous_commit=0 -c full_page_writes=0
deploy:
resources:
limits:
cpus: '0.24'
memory: '200MB'
app1:
image: davidschrammel/prisma_rinha_backend
environment:
DATABASE_URL: "postgresql://rinha:rinha@postgresdb:5432/rinha?connection_limit=13"
entrypoint: "bun prod:migration"
deploy:
restart_policy:
condition: on-failure
resources:
limits:
cpus: '0.58'
memory: '150MB'
app2:
image: davidschrammel/prisma_rinha_backend
entrypoint: "bun prod"
environment:
DATABASE_URL: "postgresql://rinha:rinha@postgresdb:5432/rinha?connection_limit=13"
deploy:
restart_policy:
condition: on-failure
resources:
limits:
cpus: '0.58'
memory: '150MB'
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "9999:9999"
deploy:
restart_policy:
condition: on-failure
resources:
limits:
cpus: "0.10"
memory: "50MB"