Article 13 of the Mexican Constitution specifically provides for military jurisdiction over all military crime and indiscipline; military tribunals execute jurisdiction over military personnel, per the Uniform Code of Military Justice (UCMJ).
Regarding military personnel labor conditions, discipline, and the chain of command as fundamental to the military, Article 123-B establishes: Military and naval personnel and members of the public security corps, and personnel of the foreign service, shall be governed by their own laws.