There can be many possible circuit designs to accomplish this task. Let's start with the circuit diagram in thread link which you provided in the comments.

For switching operation you should set the base resistor value such that the when 5V is applied to the base, transistor works in saturation region (loosely saying it is a region where we get a maximum or saturated collector/emitter current for a given transistor circuit)
Now for calculating this resistor value, you can start off by initially assuming that your transistor is in saturation region when 5V is applied to the base. In saturation region, the voltage difference between Collector and Emitter goes to a minimum and constant value(0.7V for transistor BC817). This 0.7V is dropped across the collector-emitter. Remaining 11.3 V is applied across your Relay of 83ohms resistance giving a current of I=11.3/83=136mA which is way too much for your relay. So you need to increase the effective resistance between collector and 12V supply. Now you can try for various resistor values to put in series with the relay to get an appropriate current value. Assume this resistor value to be 'X'., resulting in an effective series resistance of (83+X). Let's say you want current of 65mA to turn the relay ON.
From ohm's law:
I=V/R
0.065=11.3/(83+X)
X=90ohms
Hence add a 90ohms(approx) resistance in series with the relay.
Coming to the next part. Now you need to know hfe value for your exact transistor model(different values for different variants) . Dividing 65mA(also called saturation current in this case) by this hfe value gives you a current value. This current value is the minimum required base current to let your transistor work in saturation region. You can give a little more value than this to the base (but not too large) to ensure saturation region.
The last calculation finds the value of base resistor to let flow this much base current. Apply Kirchhoff's current Law in path from base voltage (i.e 5V) to base resistor to base-emitter voltage (1.2V in your transistor) to ground. This leads to an equation with all known values except one, that is, base resistor value. Solve the equation, find this resistor value and you're done!
If you learn the basic transistor functionality you can come up with numerous designs for the same problem!