-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (57 loc) · 1.18 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (57 loc) · 1.18 KB
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
services:
nginx:
image: nginx:alpine
restart: always
ports:
- ${PORT:-80}:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
api:
condition: service_healthy
node:
condition: service_healthy
deploy:
resources:
limits:
memory: 128m
node:
build:
dockerfile: Dockerfile.front
restart: always
expose:
- 3000
- 3001
ports:
- "3000:3000"
- "3001:3001"
healthcheck:
test: ["CMD", "sh", "-c", "wget -q --spider http://node:3000 || exit 1"]
interval: 5s
timeout: 10s
retries: 5
start_period: 5s
deploy:
resources:
limits:
memory: 1g
api:
build:
dockerfile: Dockerfile.api
restart: always
expose:
- 8000
ports:
- "8000:8000"
env_file:
- path: apis/api/.env
healthcheck:
test: ["CMD", "sh", "-c", "wget -q --spider http://api:8000/health || exit 1"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s
deploy:
resources:
limits:
memory: 512m