Created
September 13, 2024 09:27
-
-
Save MaximePinot/bd36b79d7ac5c06a2a3dc607bc7d2243 to your computer and use it in GitHub Desktop.
[Docker] Wait for DB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -r "echo'Wait for database connection';set_time_limit(60);for(;;){if(@fsockopen('database',3306)){echo\"\\n\";die;}echo'.';sleep(1);}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment