In [Serre, Lectures on the Mordell-Weil theorem], p. 85 f., it is stated that the following function is a local height function:
"Let $V/R$ be a scheme over a discrete valuation ring, $D$ a divisor on $V$ and $x \in V(R)$. Assume $x \not\in \mathrm{supp}(D)$. Define $m(x,D)$ as follows:
a) If $x$ does not intersect $D$, $m(x,D) = 0$.
b) If $x$ intersects $D$ in a point $x_0$ of the special fibre, then $m(x,D)$ is the intersection multiplicity of $x$ and $D$ and $x_0$.
Then $x \mapsto m(x,D)$ is a local height associated to $D$."
Does anyone have a reference for this?