-
Notifications
You must be signed in to change notification settings - Fork 154
/
docker-compose.yaml
39 lines (37 loc) · 999 Bytes
/
docker-compose.yaml
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
version: '2'
services:
opa:
image: openpolicyagent/opa:0.10.7
ports:
- 8181:8181
command:
- "run"
- "--server"
- "--log-level=debug"
- "io.directory.users:/users.json"
- "io.vcs.contributors:/contributors.json"
# Authorization policies.
- "display.rego"
- "pull.rego"
- "sudo_authz.rego"
- "sshd_authz.rego"
volumes:
- ./policy/users.json:/users.json
- ./policy/contributors.json:/contributors.json
# Authorization policies.
- ./policy/display.rego:/display.rego
- ./policy/pull.rego:/pull.rego
- ./policy/sudo_authz.rego:/sudo_authz.rego
- ./policy/sshd_authz.rego:/sshd_authz.rego
frontend:
image: openpolicyagent/demo-pam
ports:
- "2222:22"
volumes:
- ./etc/frontend_host_id:/etc/host_identity.json
backend:
image: openpolicyagent/demo-pam
ports:
- "2223:22"
volumes:
- ./etc/backend_host_id:/etc/host_identity.json