-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (59 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
62 lines (59 loc) · 1.64 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
services:
juniper:
build: .
ports:
- "${PORT:-3000}:3000"
environment:
- NODE_ENV=production
- APP_MODE=${APP_MODE:-demo}
- DATA_MODE=${DATA_MODE:-memory}
- DATABASE_URL=${DATABASE_URL:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- GOOGLE_AI_API_KEY=${GOOGLE_AI_API_KEY:-}
- OLLAMA_URL=${OLLAMA_URL:-}
- OLLAMA_MODEL=${OLLAMA_MODEL:-}
- ONX_MCP_SERVER_URL=${ONX_MCP_SERVER_URL:-}
- SEED_DATA=${SEED_DATA:-false}
- SESSION_TTL_MINUTES=${SESSION_TTL_MINUTES:-30}
- MAX_MESSAGES_PER_SESSION=${MAX_MESSAGES_PER_SESSION:-20}
depends_on:
db:
condition: service_healthy
required: false
restart: unless-stopped
db:
image: postgres:16-alpine
profiles: [postgres]
environment:
POSTGRES_USER: juniper
POSTGRES_PASSWORD: juniper
POSTGRES_DB: juniper
volumes:
- pgdata:/var/lib/postgresql/data
- ./db/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql
- ./db/seed.sql:/docker-entrypoint-initdb.d/02-seed.sql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U juniper"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
mcp-server:
profiles: [mcp]
build:
context: ${MCP_SERVER_PATH:-../../mcp-reference-server/server}
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- PORT=8080
- ADAPTER_TYPE=built-in
- ADAPTER_NAME=mock
- LOG_LEVEL=info
command: ["node", "dist/http-server.js"]
restart: unless-stopped
volumes:
pgdata: