Air-cooled and liquid-cooled energy storage container