"Discipline" doesn't exist, or rather it's a feature of your brain and not something you can necessarily learn. GLP-1 inhibitors and stimulants (modafinil, amphetamine, etc) are drugs that literally give you "discipline".
Habits are something you can learn though, and having more discipline helps you form them.
Habits are something you can learn though, and having more discipline helps you form them.