forked from apollographql/router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-federation2.yml
78 lines (71 loc) · 2.05 KB
/
docker-compose-federation2.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
73
74
75
76
77
78
version: "3.9"
services:
gateway:
container_name: apollo-gateway
build: dockerfiles/federation2-demo/gateway
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
- APOLLO_SCHEMA_CONFIG_EMBEDDED=true
volumes:
- ./dockerfiles/federation2-demo/supergraph.graphql:/etc/config/supergraph.graphql
ports:
- "4100:4000"
users:
container_name: users
build: dockerfiles/federation2-demo/subgraphs/users
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
ports:
- "4001:4000"
pandas:
container_name: pandas
build: dockerfiles/federation2-demo/subgraphs/pandas
ports:
- "4002:4000"
products:
container_name: products
build: dockerfiles/federation2-demo/subgraphs/products
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
ports:
- "4003:4000"
inventory:
container_name: inventory
build: dockerfiles/federation2-demo/subgraphs/inventory
environment:
- APOLLO_OTEL_EXPORTER_TYPE=collector
- APOLLO_OTEL_EXPORTER_HOST=collector
- APOLLO_OTEL_EXPORTER_PORT=4318
ports:
- "4004:4000"
collector:
container_name: collector
image: otel/opentelemetry-collector:0.54.0
command: ["--config=/conf/collector-config.yml"]
volumes:
- ./dockerfiles/federation2-demo/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.17
ports:
- "9411:9411"
prometheus:
container_name: prometheus
image: prom/prometheus:v2.36.2
volumes:
- ./dockerfiles/federation2-demo/opentelemetry/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"