Asylum seekers are subjected to mandatory detention in a number of countries. A notable example is Australia. Asylum seekers who arrive (or who are intercepted while attempting to arrive) in Australia by boat are held in detention centres in Australian territory and in other countries under arrangements made and funded by Australia. These days, most such arrivals are detained in Nauru and in Manus Island in Papua New Guinea (PNG). Such detention occurs automatically, and normally lasts for the entire period in which an asylum claim is being determined, which can be a very long time. Both adults and children are detained.
There's more resources on their website.