Skip to content

Commit 1d8d266

Browse files
committed
gwy: Add init to compose, fix nginx healthcheck.
1 parent 48db5a6 commit 1d8d266

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

‎gateway/compose.local.yaml‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,7 @@ services:
135135
networks:
136136
- sds-network-local
137137
healthcheck:
138-
test:
139-
[
140-
"CMD-SHELL",
141-
"wget -q -O /dev/null http://localhost/healthz || exit 1",
142-
]
138+
test: [ "CMD-SHELL", "curl -f http://localhost/healthz", ]
143139
interval: 30s
144140
timeout: 5s
145141
retries: 5

‎gateway/compose.production.yaml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ networks:
4242
services:
4343
sds-gateway-prod-app:
4444
image: ghcr.io/spectrumx/sds-gateway:${SDS_GATEWAY_TAG:-stable}
45+
init: true
4546
container_name: sds-gateway-prod-app
4647
tty: true
4748
depends_on:
@@ -128,11 +129,7 @@ services:
128129
networks:
129130
- sds-network-prod
130131
healthcheck:
131-
test:
132-
[
133-
"CMD-SHELL",
134-
"wget -q -O /dev/null http://localhost/healthz || exit 1",
135-
]
132+
test: [ "CMD-SHELL", "curl -f http://localhost/healthz", ]
136133
interval: 30s
137134
timeout: 5s
138135
retries: 5

0 commit comments

Comments
 (0)