Install doorbell transformer on round junction box
If that light fixture has a roof or structure over it so it would be considered a dry location the transformer could be wired in that location. If no roof you may need a transformer rated for a damp location most are listed for a dry location only.