Wall of boxes with rigidbodies collapses. Why?

I made a script that instantiates a wall of boxes. However, when I press play the boxes explode in all directions, as if they are pushing against each other. How can I have a wall of boxes that affected by physics that doesn’t fall?