Add retry mechanism for Docker Compose startup in start.sh
This commit is contained in:
@@ -653,7 +653,11 @@ compose_up_args+=(--env-file "$ENV_FILE")
|
|||||||
if [ -n "$COMPOSE_PROFILES_VALUE" ]; then
|
if [ -n "$COMPOSE_PROFILES_VALUE" ]; then
|
||||||
export COMPOSE_PROFILES="$COMPOSE_PROFILES_VALUE"
|
export COMPOSE_PROFILES="$COMPOSE_PROFILES_VALUE"
|
||||||
fi
|
fi
|
||||||
docker compose "${compose_up_args[@]}" up -d --remove-orphans
|
if ! docker compose "${compose_up_args[@]}" up -d --remove-orphans; then
|
||||||
|
echo "Docker Compose startup failed once. Waiting briefly and retrying..."
|
||||||
|
sleep 5
|
||||||
|
docker compose "${compose_up_args[@]}" up -d --remove-orphans
|
||||||
|
fi
|
||||||
|
|
||||||
verify_stack_health
|
verify_stack_health
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user