6dccf494f8
cleanup permit policies and correct documentation * docs * policy cleanup * refactor * Merge remote-tracking branch 'origin/feature/permit-policy-cleanup' into feature/permit-policy-cleanup * docs and edits
26 lines
575 B
YAML
26 lines
575 B
YAML
---
|
|
name: opa-testing
|
|
|
|
services:
|
|
opa:
|
|
image: openpolicyagent/opa:latest
|
|
command: run --server --addr=:8181 --log-level=info /policies
|
|
volumes:
|
|
- "./policies:/policies:ro"
|
|
ports:
|
|
- "8181:8181"
|
|
environment:
|
|
- OPA_LOG_LEVEL=info
|
|
|
|
data_loader:
|
|
image: curlimages/curl:latest
|
|
depends_on:
|
|
opa:
|
|
condition: service_started
|
|
volumes:
|
|
- "./policy-data.json:/policy-data.json:ro"
|
|
- "./put-policy-data.sh:/put-policy-data.sh:ro"
|
|
working_dir: /
|
|
command: sh /put-policy-data.sh
|
|
network_mode: "host"
|