-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.node.yml
More file actions
94 lines (89 loc) · 2.36 KB
/
docker-compose.node.yml
File metadata and controls
94 lines (89 loc) · 2.36 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# this docker configuration assumes that all implementations are written with Node 16
# and layed out within a `services` folder and have a project named after the service, e.g. `services/FoodPreparation/package.json`
# it assumes that there exists a `npm run start` command which starts the service
version: '3.9'
networks:
restaurant-kata:
services:
customer-actor:
build: customer
ports:
- 5000:5000
volumes:
- ./customer:/var/www/html:rw
environment:
- ASPNETCORE_URLS=http://+:5000
- APIs__GuestExperience=http://GuestExperience:8081/
- APIS__TableService=http://TableService:8082/
- APIS__Billing=http://Billing:8083/
working_dir: /var/www/html
# entrypoint: dotnet run --no-launch-profile
networks:
- restaurant-kata
FoodPreparation:
image: node:18
ports:
- "8085:8085"
volumes:
- ./services/FoodPreparation:/services
environment:
PORT: 8085
API_DELIVERY: Delivery:8084
working_dir: /services
command: bash -c "npm ci && npm run start"
networks:
- restaurant-kata
GuestExperience:
image: node:18
ports:
- "8081:8081"
volumes:
- ./services/GuestExperience:/services
working_dir: /services
environment:
PORT: 8081
API_FOODPREPERATION: FoodPreparation:8085
command: bash -c "npm ci && npm run start"
networks:
- restaurant-kata
Delivery:
image: node:18
ports:
- "8084:8084"
volumes:
- ./services/Delivery:/services
working_dir: /services
environment:
PORT: 8084
API_CUSTOMER: Customer:5000
API_BILLING: Billing:8083
command: bash -c "npm ci && npm run start"
networks:
- restaurant-kata
Billing:
image: node:18
ports:
- "8083:8083"
volumes:
- ./services/Billing:/services
working_dir: /services
environment:
PORT: 8083
API_GUEST_EXPERIENCE: GuestExperience:8081
command: bash -c "npm ci && npm run start"
networks:
- restaurant-kata
TableService:
image: node:18
ports:
- "8082:8082"
volumes:
- ./services/TableService:/services
working_dir: /services
command: bash -c "npm ci && npm run start"
networks:
- restaurant-kata
environment:
PORT: 8082
API_DELIVERY: Delivery:8084
API_FOODPREPERATION: FoodPreparation:8085