generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker_compose_dev.yml
146 lines (132 loc) · 3.12 KB
/
docker_compose_dev.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
version: '3'
services:
api-gateway:
container_name: api-gateway
build:
context: ./api_gateway
environment:
SECRET_KEY: ${SECRET_KEY}
ENV_TYPE: docker
ports:
- "8000:8000"
- "7999:7999"
- "7998:7998"
depends_on:
- question-service
- user-service
- matching-service
- collab-service
question-service:
container_name: question-service
build:
context: ./question_service
environment:
- MONGODB_URI=mongodb://mongo:27017/question_service
- PORT=8080
ports:
- "8080:8080"
depends_on:
- mongo
volumes:
- questions_test_cases:/app/question_test_cases
user-service:
container_name: user-service
build:
context: ./user_service
environment:
PORT: 8081
SECRET_KEY: ${SECRET_KEY}
ports:
- "8081:8081"
depends_on:
- postgres
volumes:
- profile_pictures:/usr/src/app/public/profile_pictures
code-execution:
container_name: code-execution
build:
context: ./code_execution
environment:
- PORT=8090
ports:
- "8090:8090"
volumes:
- questions_test_cases:/app/question_test_cases
matching-service:
container_name: matching-service
build:
context: ./matching_service
environment:
- PORT=8082
ports:
- "8082:8082"
collab-service:
container_name: collab-service
environment:
PORT: 8083
build:
context: ./collab_service
ports:
- "8083:8083"
# judge0-server:
# image: judge0/judge0:1.13.0
# ports:
# - "2358:2358"
# privileged: true
# environment:
# REDIS_PASSWORD: ${REDIS_PASSWORD}
# POSTGRES_HOST: postgres
# POSTGRES_USER: ${POSTGRES_USER}
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
# POSTGRES_DB: judge0
# POSTGRES_PORT: ${PG_PORT}
# env_file:
# - config_env/config-judge0.env
# judge0-workers:
# image: judge0/judge0:1.13.0
# command: ["./scripts/workers"]
# privileged: true
# environment:
# REDIS_PASSWORD: ${REDIS_PASSWORD}
# POSTGRES_HOST: postgres
# POSTGRES_USER: ${POSTGRES_USER}
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
# POSTGRES_DB: judge0
# POSTGRES_PORT: ${PG_PORT}
# env_file:
# - config_env/config-judge0.env
mongo:
container_name: mongo
image: mongo:6.0
ports:
- "27017:27017"
volumes:
- mongo-dev-data:/data/db
postgres:
container_name: postgres
image: postgres:latest
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
PG_PORT: ${PG_PORT}
ports:
- "${PG_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
redis:
container_name: redis
image: redis:7
ports:
- "6379:6379"
command: [
"bash", "-c",
'docker-entrypoint.sh --appendonly yes --requirepass "$$REDIS_PASSWORD"'
]
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
volumes:
postgres_data:
mongo-dev-data:
questions_test_cases:
profile_pictures: