Skip to content

Commit a914337

Browse files
committed
fix: resolve nextjs alpine localhost healthcheck and align ports
1 parent c98d3df commit a914337

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

docker-compose.production.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ services:
8484
test:
8585
[
8686
"CMD-SHELL",
87-
"wget --no-verbose --tries=1 --spider http://localhost:8080/gateway-health || exit 1",
87+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:8080/gateway-health || exit 1",
8888
]
8989
interval: 30s
9090
timeout: 10s
@@ -112,7 +112,7 @@ services:
112112
test:
113113
[
114114
"CMD-SHELL",
115-
"wget --no-verbose --tries=1 --spider http://localhost:6001/ || exit 1",
115+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:6001/ || exit 1",
116116
]
117117
interval: 30s
118118
timeout: 10s
@@ -140,7 +140,7 @@ services:
140140
test:
141141
[
142142
"CMD-SHELL",
143-
"wget --no-verbose --tries=1 --spider http://localhost:6002/ || exit 1",
143+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:6002/ || exit 1",
144144
]
145145
interval: 30s
146146
timeout: 10s
@@ -168,7 +168,7 @@ services:
168168
test:
169169
[
170170
"CMD-SHELL",
171-
"wget --no-verbose --tries=1 --spider http://localhost:6004/ || exit 1",
171+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:6004/ || exit 1",
172172
]
173173
interval: 30s
174174
timeout: 10s
@@ -196,7 +196,7 @@ services:
196196
test:
197197
[
198198
"CMD-SHELL",
199-
"wget --no-verbose --tries=1 --spider http://localhost:6005/ || exit 1",
199+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:6005/ || exit 1",
200200
]
201201
interval: 30s
202202
timeout: 10s
@@ -224,7 +224,7 @@ services:
224224
test:
225225
[
226226
"CMD-SHELL",
227-
"wget --no-verbose --tries=1 --spider http://localhost:6006/ || exit 1",
227+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:6006/ || exit 1",
228228
]
229229
interval: 30s
230230
timeout: 10s
@@ -252,7 +252,7 @@ services:
252252
test:
253253
[
254254
"CMD-SHELL",
255-
"wget --no-verbose --tries=1 --spider http://localhost:6007/ || exit 1",
255+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:6007/ || exit 1",
256256
]
257257
interval: 30s
258258
timeout: 10s
@@ -280,7 +280,7 @@ services:
280280
test:
281281
[
282282
"CMD-SHELL",
283-
"wget --no-verbose --tries=1 --spider http://localhost:6008/api || exit 1",
283+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:6008/api || exit 1",
284284
]
285285
interval: 30s
286286
timeout: 10s
@@ -331,7 +331,7 @@ services:
331331
test:
332332
[
333333
"CMD-SHELL",
334-
"wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1",
334+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/ || exit 1",
335335
]
336336
interval: 30s
337337
timeout: 10s
@@ -348,6 +348,7 @@ services:
348348
env_file:
349349
- .env
350350
environment:
351+
- PORT=3001
351352
- NODE_ENV=production
352353
- NEXT_PUBLIC_SERVER_URI=https://shopnexnow.store/
353354
- NEXT_PUBLIC_USER_UI_LINK=https://shopnexnow.store
@@ -357,7 +358,7 @@ services:
357358
test:
358359
[
359360
"CMD-SHELL",
360-
"wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1",
361+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:3001/ || exit 1",
361362
]
362363
interval: 30s
363364
timeout: 10s
@@ -374,6 +375,7 @@ services:
374375
env_file:
375376
- .env
376377
environment:
378+
- PORT=3002
377379
- NODE_ENV=production
378380
- NEXT_PUBLIC_SERVER_URI=https://shopnexnow.store
379381
- NEXT_PUBLIC_SOCKET_URI=wss://shopnexnow.store/ws-chatting
@@ -383,7 +385,7 @@ services:
383385
test:
384386
[
385387
"CMD-SHELL",
386-
"wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1",
388+
"wget --no-verbose --tries=1 --spider http://127.0.0.1:3002/ || exit 1",
387389
]
388390
interval: 30s
389391
timeout: 10s

0 commit comments

Comments
 (0)