there's 5v and 3.3v relays too. using one of those would be much more efficient as you could use just a 5v psu and the only conversion needed will be the one to make 3v3 for the esp. way better than using a 12v psu just for the 12v relay and wasting more than half the energy in everything else.