-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (60 loc) · 2.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (60 loc) · 2.45 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
services:
# ---------------------------------------------------------------------------
# groundcortex - memory consolidation engine
#
# Usage:
# cp .env.example .env # configure model, ports, source paths, etc.
# docker compose up -d
#
# MCP server: http://localhost:4343
# Inference server: http://localhost:4344 (OpenAI-compatible)
#
# First run: the base model (~4 GB for Qwen3.5-2B) is downloaded
# from Hugging Face into ./data/models/. Subsequent starts reuse the cached weights.
# ---------------------------------------------------------------------------
groundcortex:
build:
context: .
# GPU build: uncomment to pull CUDA-enabled PyTorch wheels.
# Requires NVIDIA Container Toolkit on the host (nvidia-container-toolkit).
# After changing args, rebuild with: docker compose build
#
# args:
# TORCH_INDEX: https://download.pytorch.org/whl/cu124
image: groundcortex:latest
restart: unless-stopped
ports:
- "4343:4343" # MCP server
- "4344:4344" # Inference server (OpenAI-compatible)
volumes:
# All runtime data (model weights, LoRA adapters, SQLite DB) under one
# host directory. git-ignored and docker-ignored. Docker creates ./data/
# on the host automatically if it does not exist.
- ./data:/app/data
# Source files to ingest - uncomment and adjust if your notes directory
# is on the host and not accessible over HTTP. The path on the right must
# match what you set in GROUNDCORTEX_SOURCE_PATHS.
#
# - /path/to/your/notes:/notes:ro
env_file:
# Copy .env.example to .env and fill in your values.
# The env_file is optional - all settings have sensible defaults and
# can also be passed as environment: entries below.
- path: .env
required: false
environment:
GROUNDCORTEX_BUFFER_DB: /app/data/groundcortex.db
GROUNDCORTEX_OUTPUT_DIR: /app/data/adapters
HF_HUB_CACHE: /app/data/models
# All other settings (model name, ports, API keys, source paths, cron,
# MCP exposed tools) can be set in .env or as additional entries here.
# GPU: uncomment to reserve an NVIDIA GPU for this service.
# Requires NVIDIA Container Toolkit on the host.
#
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]