For the alpha, ships will respawn by the Arkship whether or not they are destroyed nearby or in space. JC's plans for the full release are that there will be "Resurrection Nodes" which you craft and place wherever you want. You can have multiple nodes, and you will respawn at the nearest one. But as he says it's the "vision" of the game, not the immediate plans.