A stockade is a detention facility. Ro Laren was detained in a Starfleet stockade on Jaros II after an incident on Garon II during a mission of the USS Wellington. (TNG episodes: "Ensign Ro", "Preemptive Strike", DS9 novel: Wrath of the Prophets)
The second Deep Space 9 had a stockade complex that was overseen by Commander Jefferson Blackmer. (ST - The Fall novel: Revelation and Dust)