-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1008 Bytes
/
docker-compose.yml
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
---
services:
frontend:
env_file:
- ./src/front_end/.env.dev
image: sweportfoliosite_frontend:latest
build:
context: .
dockerfile: src/front_end/Dockerfile
ports:
- "5173:5173"
depends_on:
- backend
restart: unless-stopped
networks:
- app-network
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:5173"]
interval: 30s
timeout: 10s
retries: 3
backend:
env_file:
- src/back_end/.env.dev
image: sweportfoliosite_backend:latest
build:
context: .
dockerfile: ./src/back_end/Dockerfile
ports:
- ${PORT-10000}:${PORT:-10000}
volumes:
- app-data:/app/data
restart: unless-stopped
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "${BACKEND_URL}${HEALTH_CHECK_URL_SUFFIX}"]
interval: 30s
timeout: 10s
retries: 3
volumes:
app-data:
driver: local
networks:
app-network:
driver: bridge