Compton is patrolled by Los Angeles County Sheriff's Dept. 484.1625 they also use L-tac 483.4625 and Compton/Metro Tac 476.0625.
The city does have code enforcement and security but they only protect city owned property and do minor violations of city ordinances (violations like how many cars you can have stored at your house etc.)