generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
83 lines (82 loc) · 1.83 KB
/
compose.yaml
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
services:
rabbitmq:
image: rabbitmq:3.12-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
networks:
- rabbitmq-network
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 60s
timeout: 10s
retries: 5
user:
build: ./backend/account-service
env_file:
- ./backend/account-service/.env
ports:
- "3001:3001"
ai:
build: ./backend/ai-service
env_file:
- ./backend/ai-service/.env
ports:
- "3006:3006"
question:
build: ./backend/question-service
env_file:
- ./backend/question-service/.env
environment:
RABBITMQ_URL: amqp://guest:guest@rabbitmq:5672
restart: always
ports:
- "3002:3002"
networks:
- rabbitmq-network
depends_on:
rabbitmq:
condition: service_healthy
collab:
build: ./backend/collab-service
env_file:
- ./backend/collab-service/.env
environment:
RABBITMQ_URL: amqp://guest:guest@rabbitmq:5672
restart: always
ports:
- "3003:3003"
networks:
- rabbitmq-network
depends_on:
rabbitmq:
condition: service_healthy
matching:
build: ./backend/matching-service
env_file:
- ./backend/matching-service/.env
environment:
RABBITMQ_URL: amqp://guest:guest@rabbitmq:5672
restart: always
ports:
- "3004:3004"
networks:
- rabbitmq-network
depends_on:
rabbitmq:
condition: service_healthy
frontend:
build: ./frontend-react
env_file:
- ./frontend-react/.env
environment:
- WATCHPACK_POLLING=true
volumes:
- ./frontend-react/src:/usr/src/app/src
# - ./frontend-react/node_modules:/usr/src/app/node_modules
ports:
- "3000:3000"
networks:
rabbitmq-network:
driver: bridge