-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
90 lines (80 loc) · 1.99 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
version: '3.8'
services:
userservicedb:
container_name: userservicedb
image: postgres:14.5-alpine
ports:
- '5433:5432'
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
user-service:
container_name: user-service
build: ./user-service
ports:
- '8000:8000'
depends_on:
- userservicedb
volumes:
- ./user-service/src:/usr/src/user-service/src
mongodb:
container_name: mongodb
image: mongo
ports:
- 27018:27017
matching-service:
container_name: matching-service
build: ./matching-service
ports:
- '8001:8001'
depends_on:
- mongodb
environment:
- DB_LOCAL_URI=mongodb://mongodb:27017/mydb
volumes:
- ./matching-service/controller:/usr/src/matching-service/controller
- ./matching-service/model:/usr/src/matching-service/model
- ./matching-service/index.js:/usr/src/matching-service/index.js
questionservicedb:
container_name: questionservicedb
image: postgres:14.5-alpine
ports:
- '5434:5432'
volumes:
- pgdata2:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
question-service:
container_name: question-service
build: ./question-service
ports:
- '8002:8002'
depends_on:
- questionservicedb
volumes:
- ./question-service/src:/usr/src/question-service/src
chat-service:
container_name: chat-service
build: ./chat-service
ports:
- '8003:8003'
volumes:
- ./chat-service/src:/usr/src/chat-service/src
frontend:
container_name: frontend
build: ./frontend
ports:
- '3000:3000'
depends_on:
- user-service
- matching-service
- question-service
volumes:
- ./chat-service/controller:/usr/src/chat-service/controller
- ./chat-service/index.js:/usr/src/chat-service/index.js
volumes:
pgdata:
pgdata2: