-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
158 lines (148 loc) · 3.6 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
version: "3.8"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- frontend-node-modules:/app/node_modules
command: ["npm", "run", "dev"]
networks:
- peerprep-network
user_service:
build:
context: ./backend/user-service
dockerfile: Dockerfile
ports:
- "5000:5000"
env_file:
- ./backend/user-service/.env
volumes:
- ./backend/user-service:/app
- user-service-node-modules:/app/node_modules
command: ["npm", "run", "dev"]
environment:
- NODE_ENV=development
networks:
- peerprep-network
question_service:
build:
context: ./backend/question-service
dockerfile: Dockerfile
ports:
- "5001:5001"
env_file:
- ./backend/question-service/.env
volumes:
- ./backend/question-service:/app
- question-service-node-modules:/app/node_modules
command: ["npm", "run", "dev"]
environment:
- NODE_ENV=development
networks:
- peerprep-network
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
volumes:
- rabbitmq-data:/var/lib/rabbitmq
networks:
- peerprep-network
matching_service:
build:
context: ./backend/matching-service
dockerfile: Dockerfile
ports:
- "5002:5002"
env_file:
- ./backend/matching-service/.env
volumes:
- ./backend/matching-service:/app
- matching-service-node-modules:/app/node_modules
command: ["npm", "run", "dev"]
environment:
- NODE_ENV=development
- RABBITMQ_URL=amqp://guest:guest@rabbitmq:5672
depends_on:
- rabbitmq
networks:
- peerprep-network
collab_service:
build:
context: ./backend/collab-service
dockerfile: Dockerfile
ports:
- "5003:5003"
- "5004:5004"
env_file:
- ./backend/collab-service/.env
volumes:
- ./backend/collab-service:/app
- collab-service-node-modules:/app/node_modules
command: ["npm", "run", "dev"]
environment:
- NODE_ENV=development
networks:
- peerprep-network
code_execution_service:
build:
context: ./backend/code-execution-service
dockerfile: Dockerfile
ports:
- "5005:5005"
env_file:
- ./backend/code-execution-service/.env
volumes:
- ./backend/code-execution-service:/app
- code-execution-service-node-modules:/app/node_modules
command: ["npm", "run", "dev"]
environment:
- NODE_ENV=development
networks:
- peerprep-network
history_service:
build:
context: ./backend/history-service
dockerfile: Dockerfile
ports:
- "5006:5006"
env_file:
- ./backend/history-service/.env
volumes:
- ./backend/history-service:/app
- history-service-node-modules:/app/node_modules
command: ["npm", "run", "dev"]
environment:
- NODE_ENV=development
networks:
- peerprep-network
networks:
peerprep-network:
driver: bridge
volumes:
frontend-node-modules:
driver: local
user-service-node-modules:
driver: local
question-service-node-modules:
driver: local
matching-service-node-modules:
driver: local
collab-service-node-modules:
driver: local
rabbitmq-data:
driver: local
code-execution-service-node-modules:
driver: local
history-service-node-modules:
driver: local