Charge-density wave in overdoped cuprates driven by electron-phonon couplings