A Lie-Poisson bracket is presented for a four-field gyrofluid model with compressible ions and magnetic field curvature, thereby showing the model to be Hamiltonian. In particular, in addition to commonly adopted magnetic curvature terms present in the continuity equations, analogous terms must be retained also in the momentum equations, in order to have a Lie-Poisson structure.The corresponding Casimir invariants are presented, and shown to be associated to four Lagrangian invariants, that get advected by appropriate "velocity" fields during the dynamics. This differs from a cold ion limit, in which the Lie-Poisson bracket transforms into the sum of direct and semidirect products, leading to only three Lagrangian invariants.