mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
architectural change 1
This commit is contained in:
24
dockerfiles/entrypoint.sh
Normal file
24
dockerfiles/entrypoint.sh
Normal 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 $?
|
||||
Reference in New Issue
Block a user