@@ -7,6 +7,7 @@ services:
77 - " DATABASE_URL=postgres://postgres:abc123@postgres:5432/postgres"
88 - " EXTRA_ARGS=$EXTRA_ARGS"
99 - LOG_LEVEL=warn
10+ - MICROSERVICE_HOST=
1011 volumes :
1112 - ./backend/src/migrations:/app/src/migrations
1213 depends_on :
@@ -32,9 +33,7 @@ services:
3233 condition : service_healthy
3334 test-clickhouse-e2e-testing :
3435 condition : service_healthy
35- postgres-proxy :
36- condition : service_healthy
37- command : ["/bin/sh", "-c", "yarn test-all $EXTRA_ARGS"]
36+ command : [ "/bin/sh", "-c", "yarn test $EXTRA_ARGS" ]
3837 develop :
3938 watch :
4039 - action : rebuild
@@ -50,8 +49,7 @@ services:
5049 MYSQL_ROOT_PASSWORD : 123
5150 MYSQL_DATABASE : testDB
5251 healthcheck :
53- test :
54- ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p123"]
52+ test : [ "CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p123" ]
5553 interval : 10s
5654 timeout : 5s
5755 retries : 10
@@ -65,7 +63,7 @@ services:
6563 POSTGRES_PASSWORD : 123
6664 command : postgres -c 'max_connections=300'
6765 healthcheck :
68- test : ["CMD-SHELL", "pg_isready -U postgres"]
66+ test : [ "CMD-SHELL", "pg_isready -U postgres" ]
6967 interval : 10s
7068 timeout : 5s
7169 retries : 10
@@ -80,7 +78,7 @@ services:
8078 ports :
8179 - 27017:27017
8280 healthcheck :
83- test : ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
81+ test : [ "CMD", "mongosh", "--eval", "db.adminCommand('ping')" ]
8482 interval : 10s
8583 timeout : 5s
8684 retries : 10
@@ -96,7 +94,7 @@ services:
9694 tmpfs :
9795 - /var/lib/postgresql
9896 healthcheck :
99- test : ["CMD-SHELL", "pg_isready -U postgres"]
97+ test : [ "CMD-SHELL", "pg_isready -U postgres" ]
10098 interval : 10s
10199 timeout : 5s
102100 retries : 10
@@ -113,7 +111,10 @@ services:
113111 test :
114112 [
115113 " CMD-SHELL" ,
116- " /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'" ,
114+ " /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P
115+ 'yNuXf@6T#BgoQ%U6knMp' -C -Q 'SELECT 1' ||
116+ /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P
117+ 'yNuXf@6T#BgoQ%U6knMp' -Q 'SELECT 1'" ,
117118 ]
118119 interval : 10s
119120 timeout : 5s
@@ -127,7 +128,7 @@ services:
127128 environment :
128129 ORACLE_PASSWORD : 12345
129130 healthcheck :
130- test : ["CMD-SHELL", "healthcheck.sh"]
131+ test : [ "CMD-SHELL", "healthcheck.sh" ]
131132 interval : 10s
132133 timeout : 5s
133134 retries : 30
@@ -172,9 +173,9 @@ services:
172173
173174 test-redis-e2e-testing :
174175 image : redis:7.0.11
175- command : ["redis-server", "--requirepass", "SuperSecretRedisPassword"]
176+ command : [ "redis-server", "--requirepass", "SuperSecretRedisPassword" ]
176177 healthcheck :
177- test : ["CMD", "redis-cli", "ping"]
178+ test : [ "CMD", "redis-cli", "ping" ]
178179 interval : 30s
179180 timeout : 10s
180181 retries : 3
@@ -202,7 +203,7 @@ services:
202203 ports :
203204 - 50000:50000
204205 healthcheck :
205- test : ["CMD-SHELL", "su - db2inst1 -c 'db2 connect to testdb'"]
206+ test : [ "CMD-SHELL", "su - db2inst1 -c 'db2 connect to testdb'" ]
206207 interval : 30s
207208 timeout : 30s
208209 retries : 20
@@ -214,7 +215,7 @@ services:
214215 - AWS_ACCESS_KEY_ID=SuperSecretAwsAccessKey
215216 - AWS_SECRET=SuperSecretAwsSecret
216217 healthcheck :
217- test : ["CMD-SHELL", "curl -s http://localhost:8000 || exit 1"]
218+ test : [ "CMD-SHELL", "curl -s http://localhost:8000 || exit 1" ]
218219 interval : 10s
219220 timeout : 5s
220221 retries : 10
@@ -235,68 +236,7 @@ services:
235236 soft : 262144
236237 hard : 262144
237238 healthcheck :
238- test : ["CMD", "wget", "--spider", "-q", "http://localhost:8123/ping"]
239+ test : [ "CMD", "wget", "--spider", "-q", "http://localhost:8123/ping" ]
239240 interval : 30s
240241 timeout : 10s
241242 retries : 3
242-
243- # === Postgres Proxy E2E Testing ===
244-
245- testPg-proxy-e2e :
246- image : postgres:16
247- environment :
248- POSTGRES_PASSWORD : proxy_test_123
249- POSTGRES_HOST_AUTH_METHOD : md5
250- POSTGRES_INITDB_ARGS : " --auth-host=md5"
251- command : postgres -c 'max_connections=300' -c 'password_encryption=md5'
252- tmpfs :
253- - /var/lib/postgresql
254- healthcheck :
255- test : ["CMD-SHELL", "pg_isready -U postgres"]
256- interval : 10s
257- timeout : 5s
258- retries : 10
259- start_period : 10s
260-
261- proxy-mock-api :
262- build :
263- context : ./test/proxy-mock-api
264- environment :
265- MOCK_API_PORT : 3333
266- PROXY_API_KEY : test-proxy-api-key
267- UPSTREAM_PG_HOST : testPg-proxy-e2e
268- UPSTREAM_PG_PORT : 5432
269- UPSTREAM_PG_DATABASE : postgres
270- UPSTREAM_PG_USERNAME : postgres
271- UPSTREAM_PG_PASSWORD : proxy_test_123
272- depends_on :
273- testPg-proxy-e2e :
274- condition : service_healthy
275- healthcheck :
276- test : ["CMD-SHELL", "wget -q --spider http://localhost:3333/healthz || exit 1"]
277- interval : 5s
278- timeout : 3s
279- retries : 10
280- start_period : 5s
281-
282- postgres-proxy :
283- build :
284- context : ../postgres-proxy
285- environment :
286- PROXY_LISTEN_ADDR : " :5432"
287- PROXY_HEALTH_ADDR : " :8080"
288- PROXY_BACKEND_API_URL : " http://proxy-mock-api:3333"
289- PROXY_API_KEY : " test-proxy-api-key"
290- PROXY_USAGE_REPORT_INTERVAL : " 10s"
291- PROXY_LOG_LEVEL : " debug"
292- depends_on :
293- proxy-mock-api :
294- condition : service_healthy
295- testPg-proxy-e2e :
296- condition : service_healthy
297- healthcheck :
298- test : ["CMD-SHELL", "wget -q --spider http://localhost:8080/healthz || exit 1"]
299- interval : 5s
300- timeout : 3s
301- retries : 10
302- start_period : 5s
0 commit comments