forked from zanfranceschi/rinha-de-backend-2024-q1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.03 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
version: "3.5"
services:
api01: &api
image: ghcr.io/lpicanco/backend-dogfight-moonshine-24-q1:moonshine-api-v2
hostname: api01
network_mode: host
restart: unless-stopped
environment:
DATABASE_URL: localhost:9942
PORT: 3042
depends_on:
- db
deploy:
resources:
limits:
cpus: '0.25'
memory: "50MB"
api02:
<<: *api
hostname: api02
environment:
DATABASE_URL: localhost:9942
PORT: 3043
lb:
image: ghcr.io/lpicanco/backend-dogfight-moonshine-24-q1:moonshine-lb-v2
hostname: lb
restart: unless-stopped
network_mode: host
depends_on:
- api01
- api02
deploy:
resources:
limits:
cpus: '0.50'
memory: "150M"
db:
image: ghcr.io/lpicanco/backend-dogfight-moonshine-24-q1:moonshine-db-v2
hostname: db
restart: unless-stopped
network_mode: host
environment:
PORT: 9942
deploy:
resources:
limits:
cpus: '0.5'
memory: "300MB"