-
Notifications
You must be signed in to change notification settings - Fork 406
Expand file tree
/
Copy pathcompose.yaml
More file actions
130 lines (119 loc) · 2.86 KB
/
compose.yaml
File metadata and controls
130 lines (119 loc) · 2.86 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
services:
# Sock Store
#
front-end:
image: weaveworksdemos/front-end:0.3.12
hostname: front-end
ports:
- 9090:8079
restart: always
cap_drop:
- all
read_only: true
catalogue:
image: roberthouse224/catalogue:amd
hostname: catalogue
restart: always
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
read_only: true
ports:
- 8081:80
depends_on:
- catalogue-db
catalogue-db:
image: weaveworksdemos/catalogue-db:0.3.0
hostname: catalogue-db
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_DATABASE=socksdb
# Customer Review Database
mongodb:
image: mongo:latest
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password
- MONGO_INITDB_DATABASE=sockstore
volumes:
- ./data/mongodb:/docker-entrypoint-initdb.d:ro
- mongodb_data:/data/db
command: [mongod, --quiet, --logpath, /var/log/mongodb/mongod.log, --logappend, --setParameter, "logComponentVerbosity={network:{verbosity:0}}"]
healthcheck:
test: [CMD, mongosh, --eval, db.adminCommand('ping')]
interval: 10s
timeout: 5s
retries: 5
# Agent
adk-ui:
build:
context: .
dockerfile: Dockerfile.adk-ui
ports:
- 3000:3000
environment:
- API_BASE_URL=http://adk:8000
depends_on:
- adk
adk:
build:
context: .
ports:
# expose port for web interface
- 8000:8000
environment:
# point adk at the MCP gateway
- MCPGATEWAY_ENDPOINT=http://mcp-gateway:8811/sse
- CATALOGUE_URL=http://catalogue:8081
- OPENAI_BASE_URL=https://api.openai.com/v1
- AI_DEFAULT_MODEL=openai/gpt-4
# - OPENAI_MODEL_NAME=gpt4
depends_on:
- mcp-gateway
secrets:
- openai-api-key
models:
qwen3:
endpoint_var: MODEL_RUNNER_URL
model_var: MODEL_RUNNER_MODEL
mcp-gateway:
# mcp-gateway secures your MCP servers
image: docker/mcp-gateway:latest
ports:
- 8811:8811
use_api_socket: true
command:
- --transport=sse
- --servers=fetch,brave,resend,curl,mongodb
- --config=/mcp_config
- --secrets=docker-desktop:/run/secrets/mcp_secret
- --verbose
configs:
- mcp_config
secrets:
- mcp_secret
depends_on:
- mongodb
models:
qwen3:
# pre-pull the model when starting Docker Model Runner
model: ai/qwen3:14B-Q6_K
# context_size: 131000 # 35.5 GB VRAM
volumes:
mongodb_data:
configs:
mcp_config:
content: |
resend:
reply_to: [email protected]
sender: [email protected]
secrets:
openai-api-key:
file: secret.openai-api-key
mcp_secret:
file: ./.mcp.env