If you are talking pipe, then I would look at ASME B31.3 - and then look at 304.1.3. This, of course, bounces you to ASME Section VIII, Division 1, UG-28 through UG-30. To be conservative, you could figure out what the maximum compressive stress is from the axial load, bending, and external pressure, and compare that to the maximum compressive load from UG-28 through UG-30. (BTW, this is indeed done all the time with tall pressure vessels - with weight being the axial load, wind or seismic being the bending moment, and vacuum being the external pressure.)