-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
80 lines (75 loc) · 1.85 KB
/
docker-compose.yaml
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
73
74
75
76
77
78
79
80
version: "2"
services:
# OPA
opa:
image: openpolicyagent/opa:0.36.1
ports:
- "8181:8181"
environment:
- OTEL_GRPC_ENDPOINT=otel-collector:4317
volumes:
- ./opa/config.yaml:/etc/config.yaml
- ./opa/policy/:/etc/policy/
command:
- "run"
- "-s"
- "-c"
- "/etc/config.yaml"
- "-b"
- "/etc/policy"
depends_on:
- otel-collector
- blocked-user-rs
# Jaeger
jaeger-all-in-one:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "14268"
- "14250"
# Collector
otel-collector:
image: ${OTEL_IMAGE}
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "1888:1888" # pprof extension
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317" # OTLP gRPC receiver
- "55670:55679" # zpages extension
depends_on:
- jaeger-all-in-one
go-client:
build:
dockerfile: Dockerfile
context: ./go-client
environment:
- SERVER_ENDPOINT=http://go-server:7080
depends_on:
- go-server
- otel-collector
go-server:
build:
dockerfile: Dockerfile
context: ./go-server
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=otel-collector:4317
- OPA_ENDPOINT=http://opa:8080
ports:
- "8080:8080"
depends_on:
- otel-collector
- opa
blocked-user-rs:
build:
dockerfile: Dockerfile
context: ./blocked-user-rs
environment:
- OTEL_RESOURCE_ATTRIBUTES=service.name=blocked-user-rs,service.namespace=kristiansvalland,service.version=0.1.0
depends_on:
- otel-collector
ports:
- "8088:8088"