-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
73 lines (71 loc) · 1.85 KB
/
docker-compose.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.7'
services:
idsvr:
image: curity.azurecr.io/curity/idsvr:latest
container_name: idsvr
ports:
- "6749:6749"
- "8443:8443"
environment:
PASSWORD: Passw0rd1! ##admin user password
# LOGGING_LEVEL: DEBUG
networks:
curity:
aliases:
- 'opa-kong-tutorial-idsvr'
kong:
build: ./kong-image
container_name: kong
volumes:
- ${OPA_KONG_VOLUME_BASE_PATH:-.}/kong-image/configuration/:/usr/local/kong/declarative
ports:
- "8000:8000"
- "8001:8001"
- "8442:8443"
- "8444:8444"
environment:
- KONG_DATABASE=off
- KONG_DECLARATIVE_CONFIG=/usr/local/kong/declarative/kong.yml
- KONG_PLUGINS=bundled,phantom-token,opa
- KONG_NGINX_HTTP_LUA_SHARED_DICT=phantom-token 10m
- KONG_LOG_LEVEL=debug
- KONG_PROXY_ACCESS_LOG=/dev/stdout
- KONG_ADMIN_ACCESS_LOG=/dev/stdout
- KONG_PROXY_ERROR_LOG=/dev/stderr
- KONG_ADMIN_ERROR_LOG=/dev/stderr
- KONG_PROXY_LISTEN=0.0.0.0:8000, 0.0.0.0:8443 ssl
- KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl
networks:
curity:
aliases:
- 'opa-kong-tutorial-kong'
api:
build: ./api
ports:
- "8080:8080"
container_name: api
hostname: api
volumes:
- ${OPA_KONG_VOLUME_BASE_PATH:-.}/api/server/data/:/app/data
networks:
curity:
aliases:
- 'opa-kong-tutorial-api'
opa:
image: openpolicyagent/opa:latest
container_name: opa
ports:
- "8181:8181"
volumes:
- ${OPA_KONG_VOLUME_BASE_PATH:-.}/opa/policies/:/records
command: "run --server --addr :8181 /records"
# command: "run --server --addr :8181 --log-level debug /records"
networks:
curity:
aliases:
- 'opa-kong-tutorial-opa'
networks:
default:
name: 'curity'
curity:
external: true