-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.26 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
version: '3.8'
services:
# API Microservice (default service)
semantic-chunking-api:
build: .
image: semantic-chunking:latest
container_name: semantic-chunking-api
ports:
- "3001:3001"
volumes:
# Persist downloaded models between container restarts
- ./models:/app/models
environment:
- NODE_ENV=production
- PORT=3001
# Uncomment to enable Bearer token authentication
# - API_AUTH_TOKEN=your-secret-token-here
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3001/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Web UI (optional, start with --profile webui)
semantic-chunking-webui:
build: .
image: semantic-chunking:latest
container_name: semantic-chunking-webui
command: node webui/server.js
ports:
- "3000:3000"
volumes:
- ./models:/app/models
environment:
- NODE_ENV=production
- PORT=3000
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
profiles:
- webui