-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 1.04 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
version: '3'
services:
# Main SQL Agent service using purchase_behavior_app.py
sql_agent:
build: .
ports:
- "8501:8501"
environment:
# Default to LMStudio - change to http://host.docker.internal:11434 for Ollama
- LLM_API_URL=http://host.docker.internal:1234
# Optionally specify model when using Ollama
# - LLM_MODEL=llama3
- DATABASE_PATH=/app/sales_database.db
volumes:
- ./:/app
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8501"]
interval: 30s
timeout: 10s
retries: 3
# Alternative service using the standard app.py
# Uncomment to use this instead of the default service
# sql_agent_standard:
# build: .
# ports:
# - "8502:8501"
# environment:
# - LLM_API_URL=http://host.docker.internal:1234
# - DATABASE_PATH=/app/sales_database.db
# volumes:
# - ./:/app
# command: ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
# restart: unless-stopped