-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 855 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 855 Bytes
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
# Docker Compose for 11+ Tutor Application
# Usage: docker compose up -d
services:
11plus-tutor:
build:
context: .
dockerfile: Dockerfile
container_name: 11plus-tutor
ports:
- "3783:3783" # Frontend
- "8002:8002" # Backend API
volumes:
# Persist database across container restarts
- tutor-data:/app/data
environment:
# Optional: Configure LLM (uncomment and set your values)
# - LLM_BINDING=openai
# - LLM_HOST=http://host.docker.internal:1234/v1
# - LLM_MODEL=local-model
# - LLM_API_KEY=lm-studio
- PYTHONUNBUFFERED=1
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3783"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
tutor-data:
name: 11plus-tutor-data