generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
90 lines (81 loc) · 1.59 KB
/
docker-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
84
85
86
87
88
89
90
version: '3.8'
services:
redis:
image: 'redis:alpine'
restart: always
ports:
- ${REDIS_PORT}:${REDIS_PORT}
volumes:
- redis-data:/data
matching-service:
build:
context: ./matching-service
restart: always
env_file:
- ./matching-service/.env.docker
ports:
- ${MATCH_PORT}:${MATCH_PORT}
depends_on:
- redis
networks:
- default
interview-service:
build:
context: ./interview-service
restart: always
env_file:
- ./interview-service/.env.docker
ports:
- ${SOCKET_PORT}:${SOCKET_PORT}
networks:
- default
question-service:
build:
context: ./backend/questions
restart: always
env_file:
- ./backend/questions/.env
ports:
- ${QUESTION_PORT}:${QUESTION_PORT}
networks:
- default
user-service:
build:
context: ./backend/users
restart: always
env_file:
- ./backend/users/.env
ports:
- ${USER_PORT}:${USER_PORT}
networks:
- default
frontend:
build:
context: ./frontend
restart: always
env_file:
- ./frontend/.env
ports:
- ${FRONTEND_PORT}:${FRONTEND_PORT}
networks:
- default
depends_on:
- user-service
- question-service
- matching-service
supabase-service:
build:
context: ./supabase-service
restart: always
env_file:
- ./supabase-service/.env
ports:
- ${SUPABASE_PORT}:${SUPABASE_PORT}
networks:
- default
volumes:
redis-data:
networks:
default:
name: peerprep
driver: bridge