does it mean that the container of HI has maximum entropy or the universe?
At equilibrium, the entropy of the universe is maximal. There is a lot of other stuff going on in the universe, so if you can isolate your reaction and the surrounding (no matter or energy leaving the surrounding), you can also say the sum of entropy in the system and the surrounding is maximal if everything is at equilibrium.
If you would like to talk about equilibrium based on thermodynamic functions of the system, the Gibbs energy of reaction ($\Delta_r G = \frac{dG}{d\xi}$) would be appropriate for a reaction at constant temperature and pressure. Under these conditions, the reaction reaches equilibrium when the Gibbs energy is at its minimum. In the absence of non-PV work, the minimum of the Gibbs energy of reaction corresponds to maximizing the entropy of the universe.
The entropy of the reaction $\Delta_r S$, on the other hand, typically is not at its minimum when the reaction reaches equilibrium (unless $\Delta_r H$ happens to be zero, as in some transport reactions).
I don't understand how the definition of reversibility applies to a system of HI and H+,I− in a container.
Reversibility means that a process is done at near-equilibrium conditions, i.e. with minimal increase in entropy. If you are considering a process that is at equilibrium, it is certainly happening under reversible conditions. The final state is equal to the initial state - "nothing" happened, so you can certainly reverse that "nothing" without entropy increase - in fact, you don't have to do anything at all.
It is different for a process like an expansion of a gas. Depending on how you run the process, going back to the initial state will result in a large increase of entropy (irreversible) or hardy any increase (approaching a reversible cycle).