-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (73 loc) · 2.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
77 lines (73 loc) · 2.11 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
services:
# PostgreSQL 18 with pgvector
postgres:
image: pgvector/pgvector:pg18
container_name: nobrainr-db
environment:
POSTGRES_DB: nobrainr
POSTGRES_USER: nobrainr
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-nobrainr_dev}
volumes:
- nobrainr-pgdata:/var/lib/postgresql/data
ports:
- "127.0.0.1:5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nobrainr"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
# Ollama for local embeddings + extraction (GPU accelerated)
ollama:
image: ollama/ollama:latest
container_name: nobrainr-ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
- nobrainr-ollama:/root/.ollama
ports:
- "127.0.0.1:11434:11434"
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:11434/api/tags || exit 1"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
# Pull embedding + extraction models on first start
ollama-init:
image: ollama/ollama:latest
container_name: nobrainr-ollama-init
depends_on:
ollama:
condition: service_healthy
entrypoint: ["/bin/sh", "-c", "ollama pull nomic-embed-text && ollama pull gemma3:12b"]
environment:
OLLAMA_HOST: http://ollama:11434
restart: "no"
# nobrainr MCP server + dashboard
nobrainr:
build: .
container_name: nobrainr-mcp
depends_on:
postgres:
condition: service_healthy
ollama:
condition: service_healthy
environment:
NOBRAINR_DATABASE_URL: postgresql://nobrainr:${POSTGRES_PASSWORD:-nobrainr_dev}@postgres:5432/nobrainr
NOBRAINR_OLLAMA_URL: http://ollama:11434
NOBRAINR_HOST: "0.0.0.0"
NOBRAINR_PORT: "8420"
NOBRAINR_EXTRACTION_MODEL: ${NOBRAINR_EXTRACTION_MODEL:-gemma3:12b}
NOBRAINR_EXTRACTION_ENABLED: ${NOBRAINR_EXTRACTION_ENABLED:-true}
ports:
- "127.0.0.1:8420:8420"
restart: unless-stopped
volumes:
nobrainr-pgdata:
nobrainr-ollama: