-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (64 loc) · 1.57 KB
/
docker-compose.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
version: '3'
services:
delivery-subgraph:
container_name: delivery-subgraph-api
build:
context: ./apps/delivery-subgraph/
ports:
- "3002:3002"
networks:
- app-package-network
command: uvicorn main:app --host 0.0.0.0 --port 3002 --reload
user-subgraph:
container_name: user-subgraph-api
volumes:
- ./:/usr/src/app
- ./node_modules
build:
context: ./
dockerfile: ./apps/user-subgraph/Dockerfile
target: development
ports:
- "3001:3001"
networks:
- app-package-network
command: yarn start:dev user-subgraph
order-subgraph:
container_name: order-subgraph-api
volumes:
- ./:/usr/src/app
- ./node_modules
build:
context: ./
dockerfile: ./apps/order-subgraph/Dockerfile
target: development
ports:
- "3003:3003"
networks:
- app-package-network
command: yarn start:dev order-subgraph
gateway:
container_name: gateway-api
volumes:
- ./:/usr/src/app
- ./node_modules
build:
context: ./
dockerfile: ./apps/gateway/Dockerfile
target: development
command: yarn start:dev
ports:
- "4000:4000"
depends_on:
- delivery-subgraph
- user-subgraph
networks:
- app-package-network
links:
- user-subgraph
- delivery-subgraph
environment:
- SERVICE_LIST=http://delivery-subgraph:3002/graphql,deliveries|http://user-subgraph:3001/graphql,users|http://order-subgraph:3003/graphql,orders|
networks:
app-package-network:
driver: bridge