Very nice, thanks for sharing. There are some things here I’ll steal to incorporate into my setup (like building V8js within a core PHP image, I could never get that working )
I also like how you’ve handled waiting for the DB to come up to, I’ll pinch that too. (disappointing that docker compose doesn’t have a native way to handle that)
You’ve got a couple of sleep
commands around the install steps
php /var/www/squiz_matrix/install/step_02.php /var/www/squiz_matrix
sleep 5s
php /var/www/squiz_matrix/install/step_03.php /var/www/squiz_matrix
sleep 5s
I don’t think they are necessary, I never ran into any issues running the install steps back to back. I’ll test it out and see if it’s safe to remove them, would speed up startup a bit.