Extend MySQL healthcheck start_period to 180s
The in-place upgrade from MySQL 8.0 to 8.4 took ~90s, longer than the previous 30s start_period plus retries, so Compose marked the db unhealthy and never started the API. The healthcheck still passes as soon as MySQL is ready, so normal startups are not slowed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
2382289484
commit
896be8fbe9
1 file changed
+1
-1
+1
-1
@@ -30,7 +30,7 @@ services:
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
start_period: 180s # allow time for one-time data upgrades after a MySQL version bump
|
||||
networks:
|
||||
- backend
|
||||
|
||||
|
||||
Reference in new issue
Block a user