In this paper, we investigate the transonic shock solutions to the full compressible Euler system in a general two-dimensional nozzle with an external force. In their book, Courant and Friedrichs [Supersonic Flow and Shock Waves (Interscience Publishers, Inc., New York, 1948)] described the transonic shock phenomena in a de Laval nozzle: given the appropriate receiver pressure, if the upcoming flow is still supersonic after passing through the throat of the nozzle, then a shock front intervenes at some place in the diverging part of the nozzle, and the gas is compressed and slowed down to subsonic speed. We first establish the existence and uniqueness of one-dimensional transonic shock solutions to the steady full Euler system with an external force by prescribing suitable pressure at the exit of the nozzle when the upstream flow is a uniform supersonic flow. With the help of external forces, both existence and uniqueness are established by solving a nonlinear free boundary value problem in a weighted Hölder space.