Skeleton is ready
This commit is contained in:
21
deploy/main/usr/local/bin/supervisor.entrypoint.sh
Normal file
21
deploy/main/usr/local/bin/supervisor.entrypoint.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Waiting for redis startup..."
|
||||
|
||||
while ! nc -z "${REDIS_HOST}" "${REDIS_PORT}"; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
echo "Redis has started!"
|
||||
|
||||
echo "Waiting for database startup..."
|
||||
|
||||
while ! nc -z "${DB_HOST}" "${DB_PORT}"; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
echo "Database has started!"
|
||||
|
||||
echo "Running supervisor daemon..."
|
||||
|
||||
exec /usr/bin/supervisord $@
|
||||
@@ -0,0 +1,4 @@
|
||||
xdebug.mode=debug
|
||||
xdebug.start_with_request=trigger
|
||||
xdebug.client_host=host.docker.internal
|
||||
xdebug.client_port=9003
|
||||
Reference in New Issue
Block a user