-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (101 loc) · 3.18 KB
/
Copy pathdocker-compose.yml
File metadata and controls
111 lines (101 loc) · 3.18 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Kronaxis Panel Studio - Docker Compose
# Simulate psychographically accurate consumer panels with open-source AI.
# Copyright (c) 2026 Kronaxis Limited. All rights reserved.
# https://kronaxis.co.uk | contact@kronaxis.co.uk
services:
# ---------------------------------------------------------------------------
# Infrastructure
# ---------------------------------------------------------------------------
db:
build:
context: ./deploy/db
container_name: kps-db
environment:
POSTGRES_DB: tfs
POSTGRES_USER: titan
POSTGRES_PASSWORD: ${TFS_DB_PASSWORD:?TFS_DB_PASSWORD is required}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U titan -d tfs"]
interval: 5s
timeout: 3s
retries: 10
networks:
- kronaxis-panel-studio
# ---------------------------------------------------------------------------
# LLM Server
# ---------------------------------------------------------------------------
ollama:
image: ollama/ollama:latest
container_name: kps-ollama
ports:
- "11434:11434"
volumes:
- ollama-data:/root/.ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:11434/api/tags || exit 1"]
interval: 10s
timeout: 5s
retries: 30
networks:
- kronaxis-panel-studio
# Pull the default model on first boot. Exits once complete.
model-pull:
image: curlimages/curl:latest
container_name: kps-model-pull
depends_on:
ollama:
condition: service_healthy
entrypoint: ["/bin/sh", "-c"]
command:
- |
echo "Pulling model ${OLLAMA_MODEL:?OLLAMA_MODEL is required}..."
curl -sf http://kps-ollama:11434/api/pull -d "{\"name\":\"${OLLAMA_MODEL}\"}" --max-time 600
echo "Model pull complete."
networks:
- kronaxis-panel-studio
# ---------------------------------------------------------------------------
# Panel Studio
# ---------------------------------------------------------------------------
panel-studio:
build:
context: ./app
container_name: kps-panel-studio
environment:
DATABASE_URL: postgresql://titan:${TFS_DB_PASSWORD}@kps-db:5432/tfs
TFS_DB_PASSWORD: ${TFS_DB_PASSWORD}
FLASK_SECRET_KEY: ${FLASK_SECRET_KEY:?FLASK_SECRET_KEY is required}
OLLAMA_URL: ${OLLAMA_URL:-http://kps-ollama:11434}
OLLAMA_MODEL: ${OLLAMA_MODEL:?OLLAMA_MODEL is required}
OLLAMA_BUILD_MODEL: ${OLLAMA_BUILD_MODEL:-}
PANEL_STUDIO_AUTH: ${PANEL_STUDIO_AUTH:-false}
KRONAXIS_GATE_ENABLED: ${KRONAXIS_GATE_ENABLED:-true}
ports:
- "8090:8090"
volumes:
- ./seed/personas.jsonl:/seed/personas.jsonl:ro
depends_on:
db:
condition: service_healthy
ollama:
condition: service_healthy
model-pull:
condition: service_completed_successfully
networks:
- kronaxis-panel-studio
volumes:
pgdata:
ollama-data:
networks:
kronaxis-panel-studio:
driver: bridge