You can think of Open Street Map as an open-source, self-hosted alternative to Google Maps.
I’ll show you how to build your own OpenStreetMap tile server on Ubuntu 20.04.
The required RAM and disk space depend on which country’s map you are going to use. For example,
If you want to pre-render tiles you’ll need a bunch more disk space, but it will significantly speed up loading in the browser. Check the Open Street Map Wiki for exactly how much (the map data just keeps getting bigger and bigger).
In this post we’re going to get a functional OpenStreetMap tile server up and running. We’ll deploy a small map initially just to make sure everything is working correctly.
Depending on the specification of your server; you may want to adjust the postgres
configuration to optimize performance, especially if you are planning on a ‘Whole World’ install.