A polarized deuterium target internal to a medium-energy electron storage ring is described in the context of spin-dependent (e,e'd) and (e,e'p) experiments. Tensor polarized deuterium was produced in an atomic beam source and injected into a storage cell target. A Breit-Rabi polarimeter was used to monitor the injected atomic beam polarization. An electrostatic ion-extraction system and a Wien filter were utilized to measure on-line the atomic fraction of the target gas (71 ± 2%) in the storage cell. A target thickness t ⋍ 2 × 10 132H/cm2 was achieved. The target tensor polarization was varied from Pzz+ = 0.49(3) to Pzz- = -0.89(6) while keeping the vector polarization Pz at zero. The luminosity was ∼ 2 × 10 31e - · 2H · cm -2s -1 at a beam current of 120 mA. The performance was stable over a fiv running period. A large acceptance non-magnetic detector system was used for the electron-proton (deuteron) coincidence measurement. It is demonstrated that these techniques result in low backgrounds due to scattering from species other than the polarized target gas and allow for fast and flexible orientation of the target spin. Specific issues such as interfacing the experiment to the storage ring and monitoring the performance of the target system are discussed in detail.