Skip to content

Instantly share code, notes, and snippets.

@shanesoh
Created August 2, 2020 09:24
Show Gist options
  • Save shanesoh/d1a74c4e7c607c1f9f15dd451bef2d68 to your computer and use it in GitHub Desktop.
Save shanesoh/d1a74c4e7c607c1f9f15dd451bef2d68 to your computer and use it in GitHub Desktop.
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