-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
55 lines (52 loc) · 1.37 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
version: '3.8'
services:
# ===== BACKEND SERVICE =====
til-bridge-backend:
build:
context: ./til-bridge-backend
dockerfile: Dockerfile
container_name: til-bridge-backend
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=docker
- SERVER_PORT=8080
- LOG_LEVEL=INFO
- CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173,http://localhost:80,http://til-bridge-react:80
networks:
- til-bridge-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
# ===== REACT WEB FRONTEND =====
til-bridge-react:
build:
context: ./til-bridge-react
dockerfile: Dockerfile
args:
- REACT_APP_API_URL=http://til-bridge-backend:8080/api/v1
container_name: til-bridge-react
ports:
- "3000:80"
environment:
- NODE_ENV=production
networks:
- til-bridge-network
restart: unless-stopped
depends_on:
til-bridge-backend:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
til-bridge-network:
driver: bridge
name: til-bridge-network