It's stated in Serre's book "Trees" that $SL_2(\mathbb{Z}[1/p])$ is the amalgamated product of two copies of $SL_2(\mathbb{Z})$ along the subgroup $\Gamma_0(p)$. Unfortunately, it doesn't give the isomorphism.
My question is - what is this isomorphism? In particular, what is a minimal set of generators for $SL_2(\mathbb{Z}[1/p])$?