Commit 0800f23
authored
docker compose up -d returns as soon as the container starts, well
before the app inside has finished booting and bound its port, so a
single immediate curl reliably false-failed on a completely normal
deploy -- hit twice today. The gittensory service's own Docker
healthcheck already documents and tolerates this (start_period: 60s,
"tolerates the Postgres cold start"); the post-update script had no
equivalent tolerance. Retries up to 90s by default (configurable via
SELFHOST_READY_RETRIES/SELFHOST_READY_RETRY_DELAY_SECONDS), verified
against a local mock server that fails twice before succeeding, and
against one that never succeeds (exhausts and exits non-zero).
1 parent f22516c commit 0800f23
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | | - | |
35 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
36 | 51 | | |
37 | 52 | | |
38 | 53 | | |
| |||
0 commit comments