For gasoline the storage time is 1 month maximum. You can add a fuel stabalizer to extend the shelf life up to 24 months.
Always use proper / dedicated fuel storage can. Storing fuel in incorrect container can later damage the engine.
For oil please see packaging.
For storage and transportation of the product and fuel, make sure that there are no leaks and fumes.
Sparks or open flame, for example from electrical devices or boilers, can start a fire.