forked from apollographql/supergraph-demo-fed2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.otel-collector.yml
63 lines (63 loc) · 1.72 KB
/
docker-compose.otel-collector.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
version: '3'
services:
apollo-gateway:
container_name: apollo-gateway
build: ./gateway
environment:
- APOLLO_SCHEMA_CONFIG_EMBEDDED=true
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
volumes:
- ./supergraph.graphql:/etc/config/supergraph.graphql
ports:
- "4000:4000"
products:
container_name: products
build: ./subgraphs/products
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
inventory:
container_name: inventory
build: ./subgraphs/inventory
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
users:
container_name: users
build: ./subgraphs/users
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
pandas:
container_name: pandas
build: ./subgraphs/pandas
collector:
container_name: collector
image: otel/opentelemetry-collector-contrib:0.52.0
command: ["--config=/conf/collector-config.yml"]
volumes:
- ./opentelemetry/collector-config.yml:/conf/collector-config.yml
ports:
- "9464:9464"
- "4317:4317"
- "4318:4318"
- "55679:55679"
depends_on:
- zipkin
zipkin:
container_name: zipkin
image: openzipkin/zipkin:2.23.16
ports:
- "9411:9411"
prometheus:
container_name: prometheus
image: prom/prometheus:v2.36.0
volumes:
- ./opentelemetry/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"