-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
67 lines (62 loc) · 1.64 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
version: "3.3"
services:
apollo-router:
image: ghcr.io/apollographql/router:v1.5.0
volumes:
- type: bind
source: ./apollo-router
target: /apollo-router
environment:
- APOLLO_ROUTER_SUPERGRAPH_PATH=/apollo-router/supergraph.graphql
- APOLLO_ROUTER_CONFIG_PATH=/apollo-router/router.yaml
- APOLLO_ROUTER_HOT_RELOAD=true
ports:
- 4000:4000
accounts:
container_name: accounts
build:
dockerfile: ./services/accounts/dockerfile
context: .
volumes:
- type: bind
source: ./services/accounts
target: /accounts
entrypoint: uvicorn accounts.main:app --reload --port 4001 --host 0.0.0.0
ports:
- 4001:4001
inventory:
container_name: inventory
build:
dockerfile: ./services/inventory/dockerfile
context: .
volumes:
- type: bind
source: ./services/inventory
target: /inventory
entrypoint: uvicorn inventory.main:app --reload --port 4002 --host 0.0.0.0
ports:
- 4002:4002
products:
container_name: products
build:
dockerfile: ./services/products/dockerfile
context: .
volumes:
- type: bind
source: ./services/products
target: /products
entrypoint: uvicorn products.main:app --reload --port 4003 --host 0.0.0.0
ports:
- 4003:4003
reviews:
container_name: reviews
build:
dockerfile: ./services/reviews/dockerfile
context: .
volumes:
- type: bind
source: ./services/reviews
target: /reviews
entrypoint: uvicorn reviews.main:app --reload --port 4004 --host 0.0.0.0
ports:
- 4004:4004