The Da Rios system under a geometric constraint: the Gilbarg problem