-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.11 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
version: '3.8'
services:
backend:
build:
context: ./options-review-system/backend
dockerfile: Dockerfile
container_name: options-review-backend
ports:
- "8080:8080"
environment:
- MONGODB_URI=${MONGODB_URI:-mongodb://localhost:27017}
- DB_NAME=${DB_NAME:-options_review}
- PORT=8080
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
- options-network
frontend:
build:
context: ./options-review-system/frontend
dockerfile: Dockerfile
container_name: options-review-frontend
ports:
- "80:80"
environment:
- REACT_APP_API_URL=${REACT_APP_API_URL:-http://localhost:8080}
depends_on:
- backend
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
- options-network
networks:
options-network:
driver: bridge