-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yaml
219 lines (189 loc) · 4.94 KB
/
docker-compose.dev.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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
version: "3"
volumes:
database:
services:
##### APPLICATION STACK SERVICES
##
backend:
container_name: backend
build:
context: "./backend"
dockerfile: "dockerfile.dev"
args:
githubsecret: ${githubsecret}
username: ${username}
repository: ${repository}
image: backend
volumes:
- "./backend:/application/backend"
restart: always
env_file:
- ./backend/.env
ports:
- "5000:5000"
network_mode: "host"
##
frontend:
container_name: frontend
build:
context: "./frontend"
dockerfile: "dockerfile.dev"
args:
githubsecret: ${githubsecret}
username: ${username}
repository: ${repository}
image: frontend
volumes:
- "./frontend:/application/frontend"
restart: always
ports:
- "3000:3000"
network_mode: "host"
##
database:
container_name: database
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
ports:
- "3306:3306"
volumes:
- "database:/var/lib/mysql"
cap_add:
- SYS_NICE # CAP_SYS_NICE
network_mode: "host"
###################################
##### REMOTE CODE EXECUTOR SERVICES
##
# port --> 5672
rabbitmq:
container_name: rabbitmq-container
image: "rabbitmq"
restart: always
##
# port --> 6379
redis-server:
container_name: redis-server-container
image: "redis"
restart: always
##
# port --> 7000
rce-server:
container_name: rce-server-container
build:
context: "./remote_code_executor/server"
dockerfile: "Dockerfile"
args:
githubsecret: ${githubsecret}
username: ${username}
repository: ${repository}
image: rce-server
user: root
restart: always
ports:
- "7000:7000"
##
# port 43995 tcp 46465 udp 80 tcp
worker:
container_name: worker-container
build:
context: "./remote_code_executor/workers"
dockerfile: "Dockerfile"
args:
githubsecret: ${githubsecret}
username: ${username}
repository: ${repository}
image: worker
user: root
restart: always
pids_limit: 60 # Max number of processes running in thw container.
cpus: 1 # No of CPUs allocated
mem_limit: 150M # Hard limit
# ------------------ port issue
###################################
##### MONACO EDITOR + CONVERGENCE SERVICES
monaco-editor:
container_name: editor
build:
context: "./editor"
dockerfile: "Dockerfile"
args:
githubsecret: ${githubsecret}
username: ${username}
repository: ${repository}
image: monaco-editor
volumes:
- "./editor:/application/editor"
restart: always
env_file:
- ./editor/.env
ports:
- "4000:4000"
network_mode: "host"
#
#port 2424 2480
orientdb:
container_name: orientdb-container
image: orientdb:3.0.37
restart: always
environment:
ORIENTDB_ROOT_PASSWORD: "password"
ORIENTDB_OPTS_MEMORY: "-Xms384m -Xmx384m"
JAVA_OPTS: "-Dstorage.wal.allowDirectIO=false"
volumes:
- ./data/orientdb/databases:/orientdb/databases
- ./data/orientdb/backup:/orientdb/backup
# ------------------ port issue
##
#port 25520
cluster-seed:
container_name: cluster-seed-container
image: convergencelabs/convergence-cluster-seed:1.0.0-rc.12
command: "-Dlog4j.configurationFile=/etc/convergence/log4j2.xml"
restart: always
volumes:
- ./collab/config/convergence/log4j2.xml:/etc/convergence/log4j2.xml
environment:
JAVA_OPTS: "-Xmx64m -Xss512k -XX:CICompilerCount=1 -XX:-TieredCompilation"
REMOTING_EXTERNAL_HOSTNAME: cluster-seed
CLUSTER_SEED_NODES: cluster-seed
##
## 25520 80 443
server:
container_name: server-container
image: convergencelabs/convergence-server:1.0.0-rc.12
restart: always
volumes:
- ./collab/config/convergence/log4j2.xml:/opt/convergence-server/conf/log4j2.xml
- ./collab/config/convergence/convergence-server.conf:/opt/convergence-server/conf/convergence-server.conf
links:
- cluster-seed
- orientdb
##
## 80, 443
admin-console:
container_name: admin-console-container
image: convergencelabs/convergence-admin-console:1.0.0-rc.12
restart: always
environment:
CONVERGENCE_SERVER_REALTIME_API: "https://localhost/realtime/"
CONVERGENCE_SERVER_REST_API: "https://localhost/rest/"
CONVERGENCE_CONSOLE_BASE_URL: "/console/"
##
proxy:
container_name: proxy-container
image: nginx:1.21.1-alpine
restart: always
volumes:
- ./collab/config/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./collab/config/nginx/html:/usr/share/nginx/html
- ./collab/config/nginx/ssl:/etc/nginx/ssl/
depends_on:
- orientdb
- server
- admin-console
ports:
- "443:443"
- "80:80"