(the schematic was drawn upside down to normal convention... 5V at the bottom and GND at the top)
This is what I used in my 8ch relay project: https://hackaday.io/project/6456-esp8266-din-8-channel-wifi-relay-controller
5V connected to one side of the coil. Other side of coil is connected through an N-channel mosfet to ground. There is a reverse-biased diode across the coil for the back-emf generated when the coil switches off (google freewheeling diode for an explanation). The gate of the mosfet is connected to an I/O pin and also pulled to ground with a 10k resistor.
The LED is an optional indicator which you can leave out.