-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
131 lines (122 loc) · 2.55 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Docker Compose file for the node-bazaar microservice
services:
# Authentication service
auth:
build:
context: .
dockerfile: ./apps/auth/Dockerfile
target: development
command: npm run start:dev auth
env_file:
- ./apps/auth/.env
ports:
- 3000:3000
# - 3001:3001
volumes:
- .:/usr/src/app
# Category service
category:
build:
context: .
dockerfile: ./apps/category/Dockerfile
target: development
command: npm run start:dev category
env_file:
- ./apps/category/.env
ports:
- 3002:3002
volumes:
- .:/usr/src/app
# Product service
product:
build:
context: .
dockerfile: ./apps/product/Dockerfile
target: development
command: npm run start:dev product
env_file:
- ./apps/product/.env
ports:
- 3003:3003
# - 3004:3004
volumes:
- .:/usr/src/app
# Cart service
cart:
build:
context: .
dockerfile: ./apps/cart/Dockerfile
target: development
command: npm run start:dev cart
env_file:
- ./apps/cart/.env
ports:
- 3005:3005
volumes:
- .:/usr/src/app
# Payments service
payments:
build:
context: .
dockerfile: ./apps/payments/Dockerfile
target: development
command: npm run start:dev payments
env_file:
- ./apps/payments/.env
ports:
- 3006:3006
volumes:
- .:/usr/src/app
# Orders service
orders:
build:
context: .
dockerfile: ./apps/orders/Dockerfile
target: development
command: npm run start:dev orders
env_file:
- ./apps/orders/.env
ports:
- 3007:3007
volumes:
- .:/usr/src/app
# Reviews service
reviews:
build:
context: .
dockerfile: ./apps/reviews/Dockerfile
target: development
command: npm run start:dev reviews
env_file:
- ./apps/reviews/.env
ports:
- 3008:3008
volumes:
- .:/usr/src/app
# User service
user:
build:
context: .
dockerfile: ./apps/user/Dockerfile
target: development
command: npm run start:dev user
env_file:
- ./apps/user/.env
ports:
- 3009:3009
volumes:
- .:/usr/src/app
# Notifications service
notifications:
build:
context: .
dockerfile: ./apps/notifications/Dockerfile
target: development
command: npm run start:dev notifications
env_file:
- ./apps/notifications/.env
ports:
- 3010:3010
# - 3011:3011
volumes:
- .:/usr/src/app