-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (62 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
65 lines (62 loc) · 1.6 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
services:
api:
image: ghcr.io/${GHCR_OWNER:-kr8tiv-ai}/kin-api:${KIN_IMAGE_TAG:-latest}
container_name: kin-api
restart: unless-stopped
ports:
- "${API_PORT:-3002}:3002"
volumes:
- kin-data:/app/data
env_file:
- .env
environment:
- NODE_ENV=production
- HOST=0.0.0.0
- PORT=3002
- DATABASE_PATH=/app/data/kin.db
- OLLAMA_HOST=inference
- OLLAMA_PORT=11434
depends_on:
- inference
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3002/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
web:
image: ghcr.io/${GHCR_OWNER:-kr8tiv-ai}/kin-web:${KIN_IMAGE_TAG:-latest}
container_name: kin-web
restart: unless-stopped
ports:
- "${WEB_PORT:-3001}:3001"
environment:
- NODE_ENV=production
- HOSTNAME=0.0.0.0
- PORT=3001
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://api:3002}
depends_on:
- api
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3001/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
inference:
image: ghcr.io/${GHCR_OWNER:-kr8tiv-ai}/kin-inference:${KIN_IMAGE_TAG:-latest}
container_name: kin-inference
restart: unless-stopped
ports:
- "${OLLAMA_PORT:-11434}:11434"
volumes:
- ollama-models:/root/.ollama
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:11434/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
kin-data:
ollama-models: