Equilibrium of a gravitating scalar field inside a black hole compressed to the state of a boson matter, in balance with a longitudinal vector field (dark matter) from outside is considered. Analytical consideration, confirmed numerically, shows that there exist static solutions of Einstein’s equations with arbitrary high total mass of a black hole, where the component of the metric tensor [Formula: see text] changes its sign twice. The balance of the energy-momentum tensors of the scalar field and the longitudinal vector field at the interface ensures the equilibrium of these phases. Considering a gravitating scalar field as an example, the internal structure of a black hole is revealed. Its phase equilibrium with the longitudinal vector field, describing dark matter on the periphery of a galaxy, determines the dependence of the velocity on the plateau of galaxy rotation curves on the mass of a black hole, located in the center of a galaxy.