forked from rocket-admin/rocketadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.tst.yml
More file actions
239 lines (228 loc) · 5.85 KB
/
docker-compose.tst.yml
File metadata and controls
239 lines (228 loc) · 5.85 KB
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
services:
backend:
build:
context: .
env_file: ./backend/.development.env
environment:
- "DATABASE_URL=postgres://postgres:abc123@postgres:5432/postgres"
- "EXTRA_ARGS=$EXTRA_ARGS"
- LOG_LEVEL=warn
volumes:
- ./backend/src/migrations:/app/src/migrations
depends_on:
postgres:
condition: service_healthy
testMySQL-e2e-testing:
condition: service_healthy
testPg-e2e-testing:
condition: service_healthy
mssql-e2e-testing:
condition: service_healthy
test-oracle-e2e-testing:
condition: service_healthy
test-ibm-db2-e2e-testing:
condition: service_healthy
test-mongo-e2e-testing:
condition: service_healthy
test-dynamodb-e2e-testing:
condition: service_healthy
test-redis-e2e-testing:
condition: service_healthy
test-cassandra-e2e-testing:
condition: service_healthy
test-clickhouse-e2e-testing:
condition: service_healthy
command: ["/bin/sh", "-c", "yarn test-all $EXTRA_ARGS"]
develop:
watch:
- action: rebuild
path: ./backend/src
testMySQL-e2e-testing:
image: mysql:8.0.23
ports:
- 3308:3306
tmpfs:
- /var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 123
MYSQL_DATABASE: testDB
healthcheck:
test:
["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p123"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
testPg-e2e-testing:
image: postgres
ports:
- 9002:5432
environment:
POSTGRES_PASSWORD: 123
command: postgres -c 'max_connections=300'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
test-mongo-e2e-testing:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- 27017:27017
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
postgres:
image: postgres
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: abc123
command: postgres -c 'max_connections=300'
tmpfs:
- /var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
mssql-e2e-testing:
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
- SA_PASSWORD=yNuXf@6T#BgoQ%U6knMp
- ACCEPT_EULA=Y
ports:
- "5434:1433"
healthcheck:
test:
[
"CMD-SHELL",
"/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P 'yNuXf@6T#BgoQ%U6knMp' -C -Q 'SELECT 1' || /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'yNuXf@6T#BgoQ%U6knMp' -Q 'SELECT 1'",
]
interval: 10s
timeout: 5s
retries: 20
start_period: 60s
test-oracle-e2e-testing:
image: gvenzl/oracle-xe
ports:
- 1521:1521
environment:
ORACLE_PASSWORD: 12345
healthcheck:
test: ["CMD-SHELL", "healthcheck.sh"]
interval: 10s
timeout: 5s
retries: 30
start_period: 120s
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
test-cassandra-e2e-testing:
image: cassandra:5.0.4
environment:
- CASSANDRA_CLUSTER_NAME=TestCluster
- CASSANDRA_DC=TestDC
- CASSANDRA_RACK=TestRack
restart: always
healthcheck:
test:
[
"CMD",
"cqlsh",
"-u",
"cassandra",
"-p",
"cassandra",
"-e",
"describe keyspaces",
]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
test-redis-e2e-testing:
image: redis:7.0.11
command: ["redis-server", "--requirepass", "SuperSecretRedisPassword"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
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
healthcheck:
test: ["CMD-SHELL", "su - db2inst1 -c 'db2 connect to testdb'"]
interval: 30s
timeout: 30s
retries: 20
start_period: 180s
test-dynamodb-e2e-testing:
image: amazon/dynamodb-local
environment:
- AWS_ACCESS_KEY_ID=SuperSecretAwsAccessKey
- AWS_SECRET=SuperSecretAwsSecret
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:8000 || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
test-clickhouse-e2e-testing:
image: clickhouse/clickhouse-server:latest
ports:
- 8123:8123
- 9000:9000
environment:
- CLICKHOUSE_DB=testdb
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=clickhouse_password
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8123/ping"]
interval: 30s
timeout: 10s
retries: 3