-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
55 lines (52 loc) · 1.21 KB
/
compose.yml
File metadata and controls
55 lines (52 loc) · 1.21 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
services:
ollama:
image: ollama/ollama:latest
ports:
- "11434:11434"
healthcheck:
test: ["CMD-SHELL", "pgrep ollama >/dev/null || pgrep ollama-linux >/dev/null"]
interval: 10s
timeout: 5s
retries: 60
start_period: 20s
volumes:
- ollama:/root/.ollama
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Your_strong_Pa55
ports:
- "1433:1433"
healthcheck:
test: ["CMD-SHELL", "pgrep sqlservr >/dev/null"]
interval: 10s
timeout: 5s
retries: 30
start_period: 30s
proxy:
build: .
depends_on:
ollama:
condition: service_started
mssql:
condition: service_healthy
environment:
- SQL_HOST=mssql
- SQL_PORT=1433
- PROXY_LISTEN_ADDR=0.0.0.0
- PROXY_LISTEN_PORT=61433
- ENABLE_API=true
- API_PORT=8080
- ENABLE_TDS_PARSER=true
- ENABLE_SQL_TEXT_SNIFF=true
- ENFORCEMENT_MODE=log
- RPC_AUTOCORRECT_INPLACE=true
- LLM_PROVIDER=ollama
- LLM_MODEL=llama3.2
- LLM_ENDPOINT=http://ollama:11434
ports:
- "61433:61433"
- "8080:8080"
volumes:
ollama: