-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.network.yml
More file actions
66 lines (59 loc) · 2.13 KB
/
Copy pathdocker-compose.network.yml
File metadata and controls
66 lines (59 loc) · 2.13 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
# Network stack overlay — use with:
# docker compose -f docker-compose.yml -f docker-compose.network.yml up -d --build
# Joins network-local, Postgres contextmemory DB, keeps name network-gateway for Laravox.
# Admin (:5200) is local-only (no public tunnel) and talks to the API on the Docker network.
# mcp-runtime hosts generic stdio MCP processes for the gateway.
# sandbox-runtime runs shell/python/node for self-hosted-sandbox tools.
name: gateway
services:
mcp-runtime:
container_name: network-mcp-runtime
networks:
- cm-net
sandbox-runtime:
container_name: network-sandbox-runtime
networks:
- cm-net
api:
container_name: network-gateway
environment:
ContextMemory__PersistenceProvider: Postgres
ConnectionStrings__ContextMemory: >-
Host=${POSTGRES_HOST:-postgres};Port=5432;Database=${POSTGRES_DB:-contextmemory};
Username=${POSTGRES_USER:-contextmemory};Password=${POSTGRES_PASSWORD:-contextmemory_dev}
ContextMemory__WikiPath: /app/wikis
ContextMemory__OllamaEndpoint: ${OLLAMA_ENDPOINT:-https://server.kortexio.io}
ContextMemory__LlmEndpoint: ${LLM_ENDPOINT:-}
ContextMemory__DefaultLlmModel: ${DEFAULT_LLM_MODEL:-qwen3.5:9b}
ContextMemory__MasterKey: ${MASTER_KEY:-cm_master_local_dev_change_me}
ContextMemory__McpRuntimeUrl: http://mcp-runtime:8080
ContextMemory__AdminCorsOrigins__0: ${ADMIN_CORS_ORIGIN:-http://localhost:5200}
volumes:
- gateway_data:/app/data
- gateway_wikis:/app/wikis
depends_on:
mcp-runtime:
condition: service_healthy
sandbox-runtime:
condition: service_healthy
networks:
- network-local
- cm-net
admin:
container_name: network-contextmemory-admin
environment:
Admin__DefaultApiBaseUrl: http://api:8080
Admin__PublicApiBaseUrl: ${PUBLIC_API_URL:-http://localhost:5100}
Admin__DefaultMasterKey: ${MASTER_KEY:-cm_master_local_dev_change_me}
ApiBaseUrl: http://api:8080
networks:
- cm-net
volumes:
gateway_data:
gateway_wikis:
mcp_packages:
networks:
network-local:
external: true
cm-net:
driver: bridge