Repository navigation
Expand file tree
/
Copy pathdocker-compose.synapse.yml
More file actions
113 lines (105 loc) · 4.03 KB
/
Copy pathdocker-compose.synapse.yml
File metadata and controls
113 lines (105 loc) · 4.03 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
112
113
# ═══════════════════════════════════════════════════════════════════
# Spector Synapse — Docker Compose (Full Stack) v0.1.0-alpha
# ═══════════════════════════════════════════════════════════════════
#
# Three-container stack:
# - Synapse (Spring Boot 4 / Armeria backend)
# - Ollama (Local LLM serving)
# - Cortex (Angular 22 frontend via Nginx)
#
# Usage:
# docker compose -f docker-compose.synapse.yml up --build
# docker compose -f docker-compose.synapse.yml up --build -d
# docker compose -f docker-compose.synapse.yml down -v
#
# Quick start (Docker Hub, memory-only):
# docker compose -f docker-compose.synapse.yml up
#
# With chat enabled:
# SPECTOR_CHAT_ENABLED=true docker compose -f docker-compose.synapse.yml up
#
# Endpoints:
# UI: http://localhost:4200
# API: http://localhost:7070/api/v1/
# System: http://localhost:7070/api/v1/system/status
# Features: http://localhost:7070/api/v1/features
# Ollama: http://localhost:11434
# ═══════════════════════════════════════════════════════════════════
name: spector-synapse
services:
synapse:
build:
context: .
dockerfile: synapse/spector-synapse/Dockerfile
# Alternatively, use pre-built Docker Hub image:
# image: spectrayan/spector-synapse:0.1.0-alpha
container_name: spector-synapse
ports:
- "7070:7070"
environment:
# ── Core ──
SPECTOR_PORT: 7070
SPECTOR_API_KEY: ${SPECTOR_API_KEY:-spector-dev-key}
SPECTOR_DATA_DIR: /data
SPECTOR_CORS_ORIGINS: http://localhost:4200,http://localhost:7070
# ── Ollama LLM ──
SPECTOR_OLLAMA_BASE_URL: http://ollama:11434
SPECTOR_OLLAMA_MODEL: qwen3.5:latest
SPECTOR_OLLAMA_EMBED_MODEL: nomic-embed-text
# ── Feature Flags ──
SPECTOR_CHAT_ENABLED: ${SPECTOR_CHAT_ENABLED:-false}
SPECTOR_AGENT_CHAT_ENABLED: ${SPECTOR_AGENT_CHAT_ENABLED:-false}
SPECTOR_AGENT_WORKSPACES_ENABLED: ${SPECTOR_AGENT_WORKSPACES_ENABLED:-false}
SPECTOR_TAG_EXTRACTION_ENABLED: ${SPECTOR_TAG_EXTRACTION_ENABLED:-true}
SPECTOR_ENTITY_EXTRACTION_ENABLED: ${SPECTOR_ENTITY_EXTRACTION_ENABLED:-true}
SPECTOR_REFLECTION_ENABLED: ${SPECTOR_REFLECTION_ENABLED:-true}
SPECTOR_GPU_ENABLED: ${SPECTOR_GPU_ENABLED:-false}
SPECTOR_CLUSTER_ENABLED: ${SPECTOR_CLUSTER_ENABLED:-false}
SPECTOR_CONNECTORS_ENABLED: ${SPECTOR_CONNECTORS_ENABLED:-false}
SPECTOR_BENCHMARKS_ENABLED: ${SPECTOR_BENCHMARKS_ENABLED:-false}
# ── JVM ──
JAVA_OPTS: "-XX:+UseZGC -XX:+ZGenerational -Xmx1g"
volumes:
- synapse-data:/data
depends_on:
ollama:
condition: service_healthy
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:7070/api/v1/system/status"]
interval: 30s
timeout: 5s
retries: 3
ollama:
image: ollama/ollama:latest
container_name: spector-ollama
ports:
- "11434:11434"
volumes:
- ollama-models:/root/.ollama
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:11434/api/tags || exit 1"]
interval: 15s
timeout: 5s
retries: 5
cortex:
build:
context: .
dockerfile: cortex/spector-cortex/Dockerfile
# Alternatively, use pre-built Docker Hub image:
# image: spectrayan/spector-cortex:0.1.0-alpha
container_name: spector-cortex
ports:
- "4200:80"
depends_on:
synapse:
condition: service_healthy
restart: unless-stopped
volumes:
synapse-data:
driver: local
ollama-models:
driver: local