forked from ondata/ckan-mcp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (42 loc) · 1.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (42 loc) · 1.11 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
services:
ckan-mcp-server:
build:
context: .
dockerfile: Dockerfile
image: ckan-mcp-server:latest
container_name: ckan-mcp-server
restart: unless-stopped
ports:
- "3000:3000"
environment:
# Modalità di trasporto: "http" per server HTTP, "stdio" per pipe locale
TRANSPORT: http
PORT: 3000
NODE_ENV: production
# Opzionale: imposta un CKAN portal di default
# CKAN_DEFAULT_SERVER_URL: https://www.dati.gov.it/opendata
# Limiti di risorse (opzionale, regola in base al tuo host)
deploy:
resources:
limits:
memory: 256M
cpus: "0.5"
# Log con rotazione automatica
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
healthcheck:
test:
- CMD
- sh
- -c
- |
curl -sf -X POST http://localhost:$${PORT}/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}' > /dev/null
interval: 30s
timeout: 10s
retries: 3
start_period: 20s