-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
107 lines (100 loc) · 1.91 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
version: "3.9"
services:
dashboard:
container_name: dashboard
build:
context: ./services/dashboard
dockerfile: Dockerfile
args:
- VITE_CUSTOMERS_URL=http://localhost:8001/customers
- VITE_ORDERS_URL=http://localhost:8002/orders
- VITE_SUPPLIERS_URL=http://localhost:8003/suppliers
- VITE_AUTH_URL=http://localhost:8004/users
- VITE_ORDERS_WS_URL=ws://localhost:8002/ws
ports:
- 3000:80
- 8001:8001
- 8002:8002
- 8003:8003
- 8004:8004
links:
- customers
- orders
- suppliers
- auth
restart: always
depends_on:
- orders
- auth
customers:
container_name: customers
build:
context: ./services/customers
dockerfile: Dockerfile
ports:
- 3001:3001
depends_on:
- mongo
- redis
- auth
links:
- mongo
- redis
- auth
suppliers:
container_name: suppliers
build:
context: ./services/suppliers
dockerfile: Dockerfile
ports:
- 3003:3003
depends_on:
- mongo
- redis
- auth
links:
- mongo
- redis
- auth
orders:
container_name: orders
build:
context: ./services/orders
dockerfile: Dockerfile
ports:
- 3002:3002
depends_on:
- customers
- suppliers
- auth
links:
- mongo
- redis
- customers
- suppliers
- auth
auth:
container_name: auth
build:
context: ./services/auth
dockerfile: Dockerfile
ports:
- 3004:3004
depends_on:
- mongo
links:
- mongo
mongo:
container_name: mongo
image: mongo:5.0.11
ports:
- 27017:27017
restart: always
volumes:
- ./services/mongo:/data/db
redis:
container_name: redis
image: redis:alpine3.16
ports:
- 6379:6379
restart: always