  An analytical solution of Einstein-Maxwell equations with a static fluid as a
source is presented. The spacetime is represented by the axially symmetric Weyl
metric and the energy-momentum tensor describes a coupling of a fluid with an
electromagnetic field. When appropriate limits are performed we recover the
well-known solutions of Gutsunaev-Manko and Schwarzschild. Also, using Eckart's
thermodynamics, we calculated the temperature, the mechanical pressure, the
charge density and the energy density of the system. The analysis of
thermodynamic quantities suggests that the solution can be used to represent a
magnetized compact stellar object surrounded by a charged fluid.
