Deciding on which side to pass depends on the specific circumstances of each case. There is no proper side as directly defined by the rules. You want to figure in available water on either side of the vessel to be overtaken, traffic conditions, and any turns or bends either in the channel or in either vessel's planned route. For example, if you are about to come to port on your route, it is generally not good seamanship to overtake a vessel on its starboard side and then try to cut in front of their bow and come port to where you wanted to go. Collisions have occurred this way.
The signals for overtaking (as initiated by the overtaking vessel) are as follows (not verbatim):
INTL Rule 34 (c):
I Intend to overtake on YOUR starboard side:
Two prolonged, followed by one short
I intend to overtake on YOUR port side:
Two prolonged, followed by two short
The overtaken vessel shall, if in agreement, sound one prolonged, one short, one prolonged, one short. If not in agreement, she shall sound the danger signal, consisting of five or more short and rapid blasts.
INLAND Rule 34 (c):
I intend to overtake on YOUR starboard side:
One short blast
I intend to overtake on YOUR port side:
Two short blasts
The stand-on vessel (about to be overtaken) shall, if in agreement, repeat the same signal as sounded by the overtaking vessel. If in disagreement or doubt, she shall sound the danger signal.
Note that the International rules only require overtaking signals to be sounded in narrow channels or fairways. Inland rules make no distinction.