-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (61 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
67 lines (61 loc) · 1.48 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
66
67
# skill-split Docker Compose
# Development and production configurations
version: '3.8'
services:
# Development service
skill-split-dev:
build:
context: .
dockerfile: Dockerfile
target: builder
container_name: skill-split-dev
volumes:
- .:/workspace
- skill-split-db:/data
working_dir: /workspace
environment:
- PYTHONPATH=/workspace
- SKILL_SPLIT_DB=/data/skill_split.db
- ENABLE_EMBEDDINGS=false
command: tail -f /dev/null
ports:
- "8000:8000"
# Production service
skill-split-prod:
build:
context: .
dockerfile: Dockerfile
container_name: skill-split-prod
volumes:
- skill-split-db:/data
- ./docs:/docs:ro
environment:
- SKILL_SPLIT_DB=/data/skill_split.db
- ENABLE_EMBEDDINGS=true
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "from core.database import Database; db = Database(); exit(0 if db.conn else 1)"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
# Test service
skill-split-test:
build:
context: .
dockerfile: Dockerfile
target: builder
container_name: skill-split-test
volumes:
- .:/workspace
working_dir: /workspace
environment:
- PYTHONPATH=/workspace
command: python -m pytest test/ -v
volumes:
skill-split-db:
driver: local
networks:
default:
name: skill-split-network