Tray bolted and glued, the straps and wedges will prevent movement
There is a compromise between needing the batteries close to all the electrical equipment and needing to seal and vent them. The cupboard I am building should achieve this whilst also doubling as a step into the cab.