mirror of
https://github.com/apache/superset.git
synced 2026-05-09 18:05:52 +00:00
When running `docker compose up`, nginx would start immediately and begin proxying `/static` requests to port 9000 (webpack dev server) before the `superset-node` container had finished running `npm install` and starting the dev server. This resulted in 404 errors for all static assets. This fix adds: 1. A health check to `superset-node` that verifies the webpack dev server is responding on port 9000 2. A `depends_on` condition on `nginx` that waits for `superset-node` to be healthy before starting The health check: - Uses Node.js (already available in the container) to make HTTP requests - Has a 60-second start period to allow for `npm install` - Retries up to 30 times at 10-second intervals (5+ minutes total) - Prevents nginx from proxying to a non-existent server Fixes #30183 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
9.1 KiB
9.1 KiB