Commit 370d1c0
fix(api): add /health endpoint for reliable Docker health checks
The health check was using wget --spider on the root path which hits
the swagger catch-all route. BusyBox wget --spider may not handle the
swagger response correctly, causing the API container to be marked
unhealthy and preventing the seed container from starting.
- Add a dedicated /health endpoint registered before middleware
- Update Docker Compose health check to use /health
- Update CI workflow health wait loop to use /health
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent dc3bb15 commit 370d1c0
3 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
178 | 183 | | |
179 | 184 | | |
180 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
0 commit comments