-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
256 lines (239 loc) · 6.39 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
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
version: "3.9"
services:
backend:
build:
context: .
ports:
- 3000:3000
env_file: ./backend/.development.env
volumes:
- ./backend/dist:/app/dist
- ./backend/src:/app/src
- ./backend/src/migrations:/app/src/migrations
depends_on:
- postgres
- testMySQL-e2e-testing
- testPg-e2e-testing
- mssql-e2e-testing
- test-oracle-e2e-testing
- test-ibm-db2-e2e-testing
- test-mongo-e2e-testing
- test-dynamodb-e2e-testing
links:
- postgres
- testMySQL-e2e-testing
- testPg-e2e-testing
- mssql-e2e-testing
- test-oracle-e2e-testing
- test-ibm-db2-e2e-testing
- test-mongo-e2e-testing
- test-dynamodb-e2e-testing
command: ["yarn", "start"]
testMySQL-e2e-testing:
image: mysql:8.0.23
ports:
- 3308:3306
environment:
MYSQL_ROOT_PASSWORD: 123
MYSQL_DATABASE: testDB
testPg-e2e-testing:
image: postgres
ports:
- 9002:5432
environment:
POSTGRES_PASSWORD: 123
command: postgres -c 'max_connections=300'
postgres:
image: postgres
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: abc123
command: postgres -c 'max_connections=300'
mssql-e2e-testing:
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
- SA_PASSWORD=yNuXf@6T#BgoQ%U6knMp
- ACCEPT_EULA=Y
ports:
- "5434:1433"
test-oracle-e2e-testing:
image: gvenzl/oracle-xe
ports:
- 1521:1521
environment:
ORACLE_PASSWORD: 12345
autoadmin-ws-server:
build:
context: autoadmin-ws-server
ports:
- 8008:8008
env_file: ./autoadmin-ws-server/.ws-server-development.env
volumes:
- ./autoadmin-ws-server/dist:/app/dist
- ./autoadmin-ws-server/src:/app/src
links:
- backend
depends_on:
- backend
rocketadmin-private-microservice:
build:
context: ../rocketadmin-saas
dockerfile: ../rocketadmin-saas/Dockerfile
ports:
- 3001:3001
env_file: ../rocketadmin-saas/.env
links:
- backend
- rocketadmin-private-microservice-test-database
depends_on:
- rocketadmin-private-microservice-test-database
command: ["yarn", "start"]
rocketadmin-private-microservice-test-database:
image: postgres
ports:
- 8001:5432
environment:
POSTGRES_PASSWORD: abc987
command: postgres -c 'max_connections=300'
test-ibm-db2-e2e-testing:
image: icr.io/db2_community/db2
restart: always
privileged: true
environment:
- LICENSE=accept
- DB2INSTANCE=db2inst1
- DB2INST1_PASSWORD=password
- DBNAME=testdb
- BLU=false
- ENABLE_ORACLE_COMPATIBILITY=false
- UPDATEAVAIL=NO
- TO_CREATE_SAMPLEDB=true
- REPODB=false
- IS_OSXFS=false
- PERSISTENT_HOME=true
- HADR_ENABLED=false
- ETCD_ENDPOINT=
- ETCD_USERNAME=
- ETCD_PASSWORD=
ports:
- 50000:50000
test-mongo-e2e-testing:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- 27017:27017
test-dynamodb-e2e-testing:
image: amazon/dynamodb-local
ports:
- 8000:8000
environment:
- AWS_ACCESS_KEY_ID=SuperSecretAwsAccessKey
- AWS_SECRET=SuperSecretAwsSecret
rocketadmin-agent_mongo:
build:
context: .
dockerfile: ./rocketadmin-agent/Dockerfile
ports:
- 8229:8229
volumes:
- ./rocketadmin-agent/dist:/app/dist
- ./rocketadmin-agent/src:/app/src
links:
- autoadmin-ws-server
depends_on:
- autoadmin-ws-server
environment:
- REMOTE_WEBSOCKET_ADDRESS=ws://autoadmin-ws-server:8009
- APPLICATION_CONFIG_FILE_NAME=.mongodb_test_agent_config.txt
command: ["yarn", "start:dev"]
rocketadmin-agent_ibmdb2:
build:
context: .
dockerfile: ./rocketadmin-agent/Dockerfile
ports:
- 8308:8308
volumes:
- ./rocketadmin-agent/dist:/app/dist
- ./rocketadmin-agent/src:/app/src
- ./rocketadmin-agent/wait-for-db2.sh:/app/wait-for-db2.sh
- ./rocketadmin-agent/wait-for-db2.js:/app/wait-for-db2.js
links:
- autoadmin-ws-server
depends_on:
- autoadmin-ws-server
environment:
- REMOTE_WEBSOCKET_ADDRESS=ws://autoadmin-ws-server:8009
- APPLICATION_CONFIG_FILE_NAME=.ibmdb2_test_agent_config.txt
command: ["node", "/app/wait-for-db2.js"]
rocketadmin-agent_oracle:
build:
context: .
dockerfile: ./rocketadmin-agent/Dockerfile
ports:
- 8088:8088
volumes:
- ./rocketadmin-agent/dist:/app/dist
- ./rocketadmin-agent/src:/app/src
links:
- autoadmin-ws-server
depends_on:
- autoadmin-ws-server
environment:
- REMOTE_WEBSOCKET_ADDRESS=ws://autoadmin-ws-server:8009
- APPLICATION_CONFIG_FILE_NAME=.oracle_test_agent_config.txt
command: ["yarn", "start:dev"]
rocketadmin-agent_postgres:
build:
context: .
dockerfile: ./rocketadmin-agent/Dockerfile
ports:
- 8098:8098
volumes:
- ./rocketadmin-agent/dist:/app/dist
- ./rocketadmin-agent/src:/app/src
links:
- autoadmin-ws-server
depends_on:
- autoadmin-ws-server
environment:
- REMOTE_WEBSOCKET_ADDRESS=ws://autoadmin-ws-server:8009
- APPLICATION_CONFIG_FILE_NAME=.postgres_test_agent_config.txt
command: ["yarn", "start:dev"]
rocketadmin-agent_mysql:
build:
context: .
dockerfile: ./rocketadmin-agent/Dockerfile
ports:
- 8108:8108
volumes:
- ./rocketadmin-agent/dist:/app/dist
- ./rocketadmin-agent/src:/app/src
links:
- autoadmin-ws-server
depends_on:
- autoadmin-ws-server
environment:
- REMOTE_WEBSOCKET_ADDRESS=ws://autoadmin-ws-server:8009
- APPLICATION_CONFIG_FILE_NAME=.mysql_test_agent_config.txt
command: ["yarn", "start:dev"]
rocketadmin-agent_mssql:
build:
context: .
dockerfile: ./rocketadmin-agent/Dockerfile
ports:
- 8118:8118
volumes:
- ./rocketadmin-agent/dist:/app/dist
- ./rocketadmin-agent/src:/app/src
links:
- autoadmin-ws-server
depends_on:
- autoadmin-ws-server
environment:
- REMOTE_WEBSOCKET_ADDRESS=ws://autoadmin-ws-server:8009
- APPLICATION_CONFIG_FILE_NAME=.mssql_test_agent_config.txt
command: ["yarn", "start:dev"]