-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (62 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (62 loc) · 1.61 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
59
60
61
62
63
64
65
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
- SA_PASSWORD=Two3RobotDuckTag!
- ACCEPT_EULA=Y
ports:
- "1433:1433"
networks:
- prompt-net
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Two3RobotDuckTag! -Q 'SELECT 1'"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
promptstudio:
build:
context: .
dockerfile: PromptStudio/Dockerfile
depends_on:
sqlserver:
condition: service_healthy
environment:
- ConnectionStrings__DefaultConnection=Server=sqlserver,1433;Database=PromptStudio;User Id=sa;Password=Two3RobotDuckTag!;TrustServerCertificate=true;
- MCP_SERVER_URL=http://mcp-server:3001
ports:
- "5000:80"
networks:
- prompt-net
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
mcp-server:
build:
context: ./mcp-server
dockerfile: Dockerfile
depends_on:
promptstudio:
condition: service_healthy
environment:
- NODE_ENV=production
- MCP_SERVER_HOST=0.0.0.0
- MCP_SERVER_PORT=3001
- PROMPTSTUDIO_API_URL=http://promptstudio:80
ports:
- "3001:3001"
networks:
- prompt-net
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3001/health || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
prompt-net:
driver: bridge