-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
59 lines (58 loc) · 1.67 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
59 lines (58 loc) · 1.67 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
services:
mcp:
image: geocontext-mcp
build:
context: .
target: mcp
args:
- http_proxy
- https_proxy
environment:
- http_proxy
- https_proxy
- HTTP_PROXY
- HTTPS_PROXY
- HTTP_HOST=0.0.0.0
- HTTP_PORT=${HTTP_PORT:-3000}
- HTTP_MCP_ENDPOINT=${HTTP_MCP_ENDPOINT:-/mcp}
- TRANSPORT_TYPE=http
# Shared 32-byte hex key for the opaque proxy URLs.
# Generate with: openssl rand -hex 32.
- PROXY_URL_SECRET=${PROXY_URL_SECRET:?PROXY_URL_SECRET is required (openssl rand -hex 32)}
# Externally reachable base URL of the proxy, used to build layer data_urls.
- PROXY_PUBLIC_BASE_URL=${PROXY_PUBLIC_BASE_URL:-http://localhost:${PROXY_PORT:-3002}}
ports:
- ${HTTP_PORT:-3000}:${HTTP_PORT:-3000}
deploy:
resources:
limits:
cpus: '0.5'
memory: 256M
restart: unless-stopped
# Stateless geodata proxy. Serves the GeoJSON layer URLs Carto fetches; decodes the
# opaque token with the same shared key.
proxy:
image: geocontext-proxy
build:
context: .
target: proxy
args:
- http_proxy
- https_proxy
environment:
- http_proxy
- https_proxy
- HTTP_PROXY
- HTTPS_PROXY
- HTTP_HOST=0.0.0.0
- PROXY_PORT=${PROXY_PORT:-3002}
# Same shared key as the MCP; the proxy decodes the token the MCP encoded.
- PROXY_URL_SECRET=${PROXY_URL_SECRET:?PROXY_URL_SECRET is required (openssl rand -hex 32)}
ports:
- ${PROXY_PORT:-3002}:${PROXY_PORT:-3002}
deploy:
resources:
limits:
cpus: '0.5'
memory: 256M
restart: unless-stopped