The well-known analogy between a special limit of general relativity and electromagnetism is explored in the context of the Lorentz-violating standard-model extension. An analogy is developed for the minimal standard-model extension that connects a limit of the CPT-even component of the electromagnetic sector to the gravitational sector. We show that components of the post-Newtonian metric can be directly obtained from solutions to the electromagnetic sector. The method is illustrated with specific examples including static and rotating sources. Some unconventional effects that arise for Lorentz-violating electrostatics and magnetostatics have an analog in Lorentz-violating post-Newtonian gravity. In particular, we show that even for static...