Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Forked from shanesoh/docker-compose.yml
Created November 25, 2020 07:39
Show Gist options
  • Save developer-guy/ef447cd89a23e14c1fbd29932fd24be3 to your computer and use it in GitHub Desktop.
Save developer-guy/ef447cd89a23e14c1fbd29932fd24be3 to your computer and use it in GitHub Desktop.
envoy + opa
version: "3.7"
services:
envoy:
build: ./compose/envoy
ports:
- "8080:80"
volumes:
- ./envoy.yaml:/config/envoy.yaml
environment:
- DEBUG_LEVEL=info
- SERVICE_NAME=app
- SERVICE_PORT=80
opa:
image: openpolicyagent/opa:0.21.1-istio
volumes:
- ./policy.rego:/config/policy.rego
command:
- "run"
- "--log-level=debug"
- "--log-format=json-pretty"
- "--server"
- "--set=plugins.envoy_ext_authz_grpc.addr=:9191"
- "--set=decision_logs.console=true"
- "/config/policy.rego"
app:
image: kennethreitz/httpbin:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment