-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose.router-otel.yml
68 lines (68 loc) · 1.92 KB
/
docker-compose.router-otel.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
version: '3'
services:
apollo-router:
container_name: apollo-router
image: ghcr.io/apollographql/router:v1.59.0
volumes:
- ./supergraph.graphql:/dist/schema/supergraph.graphql
- ./router.yaml:/dist/config/router.yaml
command: [ "--dev", "-c", "config/router.yaml", "-s", "schema/supergraph.graphql", "--log", "info" ]
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
volumes:
- "/etc/localtime:/etc/localtime:ro"
inventory:
container_name: inventory
build: ./subgraphs/inventory
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
volumes:
- "/etc/localtime:/etc/localtime:ro"
users:
container_name: users
build: ./subgraphs/users
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
volumes:
- "/etc/localtime:/etc/localtime:ro"
pandas:
container_name: pandas
build: ./subgraphs/pandas
volumes:
- "/etc/localtime:/etc/localtime:ro"
collector:
container_name: collector
image: otel/opentelemetry-collector:0.116.1
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:3.4.3
ports:
- "9411:9411"
prometheus:
container_name: prometheus
image: prom/prometheus:v2.55.1
volumes:
- ./opentelemetry/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"