Fix: Correct Dockerfile HEALTHCHECK and Swagger UI URL for root-path configuration
- Fixed HEALTHCHECK to use /btpxpress/q/health/ready instead of /q/health/ready - Added quarkus.swagger-ui.urls.default=/btpxpress/openapi for correct OpenAPI loading - Ensures Swagger UI loads the spec from the correct path with root-path These fixes ensure: 1. Docker health checks work correctly with quarkus.http.root-path=/btpxpress 2. Swagger UI correctly loads /btpxpress/openapi instead of /openapi 3. Pods are marked healthy by Kubernetes Resolves the 404 error in Swagger UI when loading API definition.
This commit is contained in:
@@ -79,6 +79,7 @@ quarkus.datasource.jdbc.leak-detection-interval=PT10M
|
||||
# OpenAPI/Swagger
|
||||
quarkus.swagger-ui.always-include=true
|
||||
quarkus.swagger-ui.path=/swagger-ui
|
||||
quarkus.swagger-ui.urls.default=/btpxpress/openapi
|
||||
quarkus.smallrye-openapi.path=/openapi
|
||||
quarkus.smallrye-openapi.info-title=BTP Xpress API
|
||||
quarkus.smallrye-openapi.info-version=1.0.0
|
||||
|
||||
Reference in New Issue
Block a user