-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.37 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (46 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
services:
db:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: interview-challenge-db
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=YourSecurePassword123!
ports:
- "1433:1433"
volumes:
- mssql-data:/var/opt/mssql
healthcheck:
test: ["CMD", "/opt/mssql-tools18/bin/sqlcmd", "-S", "localhost", "-U", "sa", "-P", "YourSecurePassword123!", "-Q", "SELECT 1", "-C"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
backend:
image: interview-challenge-backend
build:
context: ./Backend/sim_backend
dockerfile: Dockerfile
container_name: interview-challenge-backend
ports:
- "5138:5138"
environment:
- ConnectionStrings__DefaultConnection=Server=db;Database=InterviewChallengeDB;User Id=sa;Password=YourSecurePassword123!;TrustServerCertificate=True;
- Auth__Password=${AUTH_PASSWORD:-your_password_here}
- Gemini__ApiKey=${GEMINI_API_KEY:-your_gemini_api_key_here}
depends_on:
db:
condition: service_healthy
frontend:
image: interview-challenge-frontend
build:
context: ./Frontend
dockerfile: Dockerfile
container_name: interview-challenge-frontend
ports:
- "5173:80"
environment:
- VITE_API_URL=http://localhost:5138/api
depends_on:
- backend
volumes:
mssql-data: