Galactic factories of cosmic-ray electrons and positrons