services:
opa:
image: openpolicyagent/opa:latest
command: ["run", "--server", "--addr", "0.0.0.0:8181", "/policies"]
ports:
- "8181:8181"
volumes:
- ./policies:/policies:ro
mcp-js:
build: .
command:
- --http-port=3000
- --directory-path=/data/heaps
- --session-db-path=/data/sessions
- --opa-url=http://opa:8181
- --fetch-header=host=api.github.com,header=Authorization,value=Bearer ${GITHUB_TOKEN}
tmpfs:
- /data:uid=1000,gid=1000
ports:
- "3000:3000"
depends_on:
- opa