-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.module-policy.yml
More file actions
41 lines (38 loc) · 1.06 KB
/
docker-compose.module-policy.yml
File metadata and controls
41 lines (38 loc) · 1.06 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
# Docker Compose for module policy integration tests.
#
# Services:
# opa – OPA server loaded with policies/
# mcp-default – mcp-js with external modules DISABLED (default)
# mcp-opa-policy – mcp-js with --allow-external-modules + --opa-module-policy
services:
opa:
image: openpolicyagent/opa:latest
command: ["run", "--server", "--addr", "0.0.0.0:8181", "/policies"]
ports:
- "8181:8181"
volumes:
- ./policies:/policies:ro
mcp-default:
build: .
command:
- --http-port=3000
- --directory-path=/data/heaps
- --session-db-path=/data/sessions
tmpfs:
- /data:uid=1000,gid=1000
ports:
- "3001:3000"
mcp-opa-policy:
build: .
command:
- --http-port=3000
- --directory-path=/data/heaps
- --session-db-path=/data/sessions
- --allow-external-modules
- --policies-json={"modules":{"policies":[{"url":"http://opa:8181","policy_path":"mcp/modules"}]}}
tmpfs:
- /data:uid=1000,gid=1000
ports:
- "3002:3000"
depends_on:
- opa