-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (46 loc) · 1.47 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
# These are the subgraphs in this supergraph
# They are deployed first, so they're running in the environment
# When the subgraphs are ready to serve requests
# we publish the subgraph schemas to the Apollo Registry
# Apollo Registry then does:
# - supergraph CI: composes the subgraphs into a supergraph schema
# - supergraph CD: feeds new supergraph schema to the Apollo Router via Apollo Uplink polling every few seconds
# Run 'make demo' to get started
# then run 'make smoke' in separate window
# or open http://localhost:4000 to use Apollo Sandbox to issue queries
# Note this is the base docker-compose file for this project.
# The paths in all other compose files are **relative to this file**, per:
# https://docs.docker.com/compose/extends/#multiple-compose-files
# see `./opentelemetry` `./misc/studio` and `./misc/local` for other compose files
version: '3.9'
services:
products:
container_name: products
build: ./subgraphs/products
ports:
- "4001:4000"
inventory:
container_name: inventory
build: ./subgraphs/inventory
ports:
- "4002:4000"
users:
container_name: users
build: ./subgraphs/users
ports:
- "4003:4000"
reviews:
container_name: reviews
build: subgraphs/reviews
ports:
- "4004:4000"
accounts:
container_name: accounts
build: subgraphs/accounts
ports:
- "4005:4000"
bill-history:
container_name: bill-history
build: subgraphs/bill-history
ports:
- "4006:4000"