The word discipline is derived from the word disciple.
Discipline thus follows when we are a disciple to a philosophy, a set of principles/values, or an overriding purpose.
That is how we summon the will to subordinate what we want now to that greater cause or idea.