-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (87 loc) · 1.58 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
version: "3.8"
services:
rabbitmq:
image: rabbitmq:3-management
ports:
- 15672:15672
- 5672:5672
nginx:
image: nginx
ports:
- 80:80
volumes:
- ./frontend:/usr/share/nginx/html
- ./nginx.config:/etc/nginx/conf.d/default.conf
- ./certs:/etc/nginx/certs
depends_on:
- client
- book
- loan
- notification
client:
build: ./backend/client
ports:
- 3001:3000
environment:
- PORT=3001
depends_on:
- rabbitmq
- db_client
book:
build: ./backend/book
ports:
- 3000:3000
environment:
- PORT=3000
depends_on:
- rabbitmq
- db_book
loan:
build: ./backend/loan
ports:
- 3002:3000
environment:
- PORT=3002
depends_on:
- rabbitmq
- db_loan
notification:
build: ./backend/notification
ports:
- 3003:3000
environment:
- PORT=3003
depends_on:
- rabbitmq
db_client:
image: mongo
ports:
- 30000:27017
environment:
- MONGODB=mongodb://localhost:27017
volumes:
- ./backend/client/db:/data/db
db_book:
image: mongo
ports:
- 30001:27017
environment:
- MONGODB=mongodb://localhost:27017
volumes:
- ./backend/book/db:/data/db
db_loan:
image: mongo
ports:
- 30002:27017
environment:
- MONGODB=mongodb://localhost:27017
volumes:
- ./backend/loan/db:/data/db
frontend:
build: ./frontend
ports:
- 5173:5173
volumes:
- ./frontend:/app
depends_on:
- nginx