If anyone here thinks that diesel needs to be compressed to become explosive, they better think again!! Better still, keep away from any electrical installations involving the storage of diesel oil !! lol!!
As stated elsewhere on this thread, it's the vapour of diesel fuel that is most volatile and you'll always find copious amounts of that volatile vapour sitting on top of the fuel oil in storage tanks!! A full storage tank is much safer to open than a partially full tank!!
Going by the photo provided, i'd say that isn't a safe, or ideal storage facility, can't even see any means of natural ventilation or free air flow etc.... Certainly wouldn't be using normal weatherproof switches and outlets that close to a flammable fuel storage tank and delivery system!!