forked from VanshKing30/codenest
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 896 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (32 loc) · 896 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
services:
server:
image: coc-member-backend
build:
context: ./backend
dockerfile: ../docker/Dockerfile.backend
target: production
ports:
- "127.0.0.1:3001:3000"
env_file:
- backend/.env
environment:
- PORT=3000
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:3000/health"]
interval: 30s
timeout: 3s
retries: 3
web:
image: coc-member-frontend
build:
context: ./frontend
dockerfile: ../docker/Dockerfile.frontend
target: production
args:
- VITE_API_URL=${VITE_API_URL:-http://localhost:3001}
depends_on:
- server
env_file:
- frontend/.env
ports:
- "127.0.0.1:5174:5173"