-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 823 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (28 loc) · 823 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
version: "3.8"
services:
backend:
build:
context: ./motor-speed-backend
dockerfile: Server/Dockerfile
ports:
- "5001:5001"
volumes:
- ./motor-speed-backend/EngineMock/enhanced_motor_engine.dylib:/app/enhanced_motor_engine.dylib
command: >
sh -c "dotnet ef database update --project Server/MotorServer/MotorServer.csproj --startup-project Server/MotorServer && dotnet MotorServer.dll"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
frontend:
build: ./motor-speed-frontend
ports:
- "5173:80"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s