-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 974 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 974 Bytes
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
version: "3.8"
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5001:5001"
volumes:
- backend_uploads:/app/uploads
- backend_results:/app/results
environment:
- HOST=0.0.0.0
- PORT=5001
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5001"]
interval: 30s
timeout: 10s
retries: 3
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_API_URL=http://localhost:5001/api
depends_on:
backend:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
volumes:
backend_uploads:
backend_results: