-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
25 lines (24 loc) · 856 Bytes
/
Copy pathcompose.yaml
File metadata and controls
25 lines (24 loc) · 856 Bytes
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
# Hardened deployment example for the CALM MCP server.
#
# MCP uses stdio transport, so this is a reference for sandboxing rather than a
# detached daemon — attach a client to the container's stdin/stdout:
# docker compose run --rm calm
services:
calm:
build:
context: .
dockerfile: Containerfile
read_only: true # immutable root fs
cap_drop: [ALL] # drop all Linux capabilities
security_opt:
- no-new-privileges:true
pids_limit: 64
mem_limit: 256m
stdin_open: true # MCP stdio transport
tty: false
volumes:
- ./:/project:ro # project mounted read-only
- calm-data:/data # index DB on a writable volume
command: ["serve", "--project-root", "/project", "--db-path", "/data/index.db"]
volumes:
calm-data: