-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.38 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.38 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
56
57
58
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: fitspec-sql
environment:
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: "FitSpec_Dev123!"
MSSQL_PID: "Developer"
ports:
- "1433:1433"
volumes:
- sqlserver-data:/var/opt/mssql
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "FitSpec_Dev123!" -Q "SELECT 1" -C -b
interval: 10s
timeout: 5s
retries: 5
mongodb:
image: mongo:7
container_name: fitspec-mongo
ports:
- "27017:27017"
environment:
MONGO_INITDB_DATABASE: fitspec
volumes:
- mongo-data:/data/db
api:
build:
context: .
dockerfile: src/FitSpec.API/Dockerfile
container_name: fitspec-api
ports:
- "5062:5062"
environment:
ConnectionStrings__DefaultConnection: "Server=sqlserver;Database=FitSpec;User Id=sa;Password=FitSpec_Dev123!;TrustServerCertificate=true"
ConnectionStrings__MongoDb: "mongodb://mongodb:27017/fitspec"
Claude__ApiKey: "${CLAUDE_API_KEY:-}"
depends_on:
sqlserver:
condition: service_healthy
mongodb:
condition: service_started
ui:
build:
context: src/fitspec-ui
dockerfile: Dockerfile
container_name: fitspec-ui
ports:
- "4200:80"
depends_on:
- api
volumes:
sqlserver-data:
mongo-data: