There are a number of naval bases in Djibouti- as far as I can see the Chinese built the base as part of their efforts to join the multi-nation effort against piracy. They have the biggest need to stop piracy of any country given their role in so many supply chains. I doubt the Govt of Djibouti ever plans to "retire" to Beijing - much more likely to the outskirts of Nice
The Belt & Road initiative is a clear plan to extend influence but if the west takes an interest in some of these places they'll not fall under Chinese control.