Repository navigation
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
66 lines (62 loc) · 2.42 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
66 lines (62 loc) · 2.42 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
# ═══════════════════════════════════════════════════════════════════
# Spector — Local Development Docker Compose
# ═══════════════════════════════════════════════════════════════════
#
# Uses pre-built artifacts from the host (no multi-stage Maven/npm
# builds inside Docker). Requires:
# 1. mvn install -DskipTests (core reactor)
# 2. mvn package -DskipTests -f synapse/spector-synapse/pom.xml (synapse)
# 3. cd cortex/spector-cortex && npm run build (cortex)
#
# Usage:
# docker compose -f docker-compose.local.yml up --build
# docker compose -f docker-compose.local.yml down
#
# Endpoints:
# UI: http://localhost:4200
# API: http://localhost:7070/api/v1/
# Status: http://localhost:7070/api/v1/system/status
# ═══════════════════════════════════════════════════════════════════
name: spector-local
services:
synapse:
build:
context: .
dockerfile: deploy/docker/Dockerfile.synapse-local
container_name: spector-synapse
ports:
- "7070:7070"
environment:
SPECTOR_PORT: 7070
SPECTOR_API_KEY: spector-dev-key
SPECTOR_DATA_DIR: /data
SPECTOR_OLLAMA_BASE_URL: http://host.docker.internal:11434
SPECTOR_OLLAMA_MODEL: nomic-embed-text
SPECTOR_OLLAMA_EMBED_MODEL: nomic-embed-text
SPECTOR_CORS_ORIGINS: http://localhost:4200,http://localhost:7070
JAVA_OPTS: "-XX:+UseZGC -Xmx1g --enable-preview --add-modules=jdk.incubator.vector --enable-native-access=ALL-UNNAMED"
volumes:
- synapse-data:/data
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:7070/actuator/health"]
interval: 10s
timeout: 5s
start_period: 30s
retries: 5
cortex:
build:
context: .
dockerfile: deploy/docker/Dockerfile.cortex-local
container_name: spector-cortex
ports:
- "4200:80"
depends_on:
synapse:
condition: service_started
restart: unless-stopped
volumes:
synapse-data:
driver: local