-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
70 lines (65 loc) · 2.17 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
70 lines (65 loc) · 2.17 KB
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
services:
#
# The API gateway adds a span to the OpenTelemetry collector for the phantom token plugin's introspection request
#
api-gateway:
image: custom_kong:3.9-ubuntu
ports:
- 80:3000
volumes:
- ./apigateway/kong.yml:/usr/local/kong/declarative/kong.yml
environment:
KONG_DATABASE: 'off'
KONG_DECLARATIVE_CONFIG: '/usr/local/kong/declarative/kong.yml'
KONG_PROXY_LISTEN: '0.0.0.0:3000'
KONG_LOG_LEVEL: 'info'
KONG_TRACING_INSTRUMENTATIONS: 'http_client,request'
KONG_TRACING_SAMPLING_RATE: 1.0
KONG_PLUGINS: 'bundled,phantom-token'
KONG_NGINX_HTTP_LUA_SHARED_DICT: 'phantom-token 10m'
#
# A simple API that adds a span to the OpenTelemetry collector for API requests
#
demoapi:
image: demoapi:latest
environment:
PORT: 3000
JWKS_URI: 'http://idsvr:8443/oauth/v2/oauth-anonymous/jwks'
REQUIRED_JWT_ALGORITHM: 'RS256'
REQUIRED_ISSUER: 'http://login.example.com/oauth/v2/oauth-anonymous'
REQUIRED_AUDIENCE: 'api.example.com'
OTEL_SERVICE_NAME: 'demoapi'
OTEL_EXPORTER_OTLP_ENDPOINT: 'http://otel-collector:4318/v1/traces'
#
# The Curity Identity Server adds a span to the OpenTelemetry collector for incoming OAuth requests
#
idsvr:
image: curity.azurecr.io/curity/idsvr:latest
ports:
- 6749:6749
- 4466:4466
volumes:
- ./idsvr/license.json:/opt/idsvr/etc/init/license/license.json
- ./idsvr/config-backup.xml:/opt/idsvr/etc/init/config.xml
- ./idsvr/log4j2.xml:/opt/idsvr/etc/log4j2.xml
environment:
ADMIN: 'true'
PASSWORD: 'Password1'
LOGGING_LEVEL: 'INFO'
#
# The collector receives data and distributes it to Zipkin for visualization
#
otel-collector:
image: otel/opentelemetry-collector:latest
command: ["--config=/etc/otel-collector-config.yaml", ""]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- 4318:4318
#
# Zipkin provides visualization of the overall trace data for all backend requests
#
zipkin:
image: openzipkin/zipkin:latest
environment:
- JAVA_OPTS=-Xms1024m -Xmx1024m -XX:+ExitOnOutOfMemoryError