architectural change 1

This commit is contained in:
Adam Outler
2025-09-24 16:29:15 -04:00
parent 3dd5c4bfcc
commit 29aa884836
13 changed files with 301 additions and 109 deletions

24
dockerfiles/entrypoint.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
echo "---------------------------------------------------------"
echo "[ENTRYPOINT] Initializing container..."
echo "---------------------------------------------------------"
# Run the main initialization script
/app/dockerfiles/init.sh
echo "---------------------------------------------------------"
echo "[ENTRYPOINT] Starting services..."
echo "---------------------------------------------------------"
# Start all services in the background
/app/dockerfiles/start-crond.sh &
/app/dockerfiles/start-php-fpm.sh &
/app/dockerfiles/start-nginx.sh &
/app/dockerfiles/start-backend.sh &
# Wait for any process to exit
wait -n
# Exit with status of process that exited first
exit $?