Of course, different bacteria have different needs, but in general they strive in temperatures starting from 30-40ºC, and when it comes to thermophiles or hyperthermophiles, the ideal temperature is 60º C+ or 80º C+ respectively.
Nutrients are also important during binary fission (the reproduction of bacteria), but since bacteria can find nutrients basically everywhere, this factor doesn't really have "conditions".