Installation Manual for Martin? #2299
-
|
I am absolutely a beginner with Martin. I am trying to relieve the burden on the OpenStreetMap public tile servers by deploying my own local installation of OSM data/tiles to be used for my own apps etc. I found the installation manual provided e.g. at [https://maplibre.org/martin/quick-start.html] insufficient (for me) for getting martin to run locally (in linux headless server) from scratch, including the database setup, using openstreetmap tiles and behind nginx. There are fragments for setting up things, like nginx but I got nowhere except that I have successfully installed martin from source with cargo following the instructions provided in the manual: I now have martin installed including 2 executables. But then I would like to set up the database, as a local postgres. How? Then I would like to populate that database with OSM data/tiles. How? Then I want to set up nginx. I see in the manual that this section is I am asking to point me to a step-by-step guide on how to install martin in a headless linux server with postgres and OSM tiles for a specific region, e.g. Monaco. Is there such a thing somewhere? Without docker please. Any help appreciated. thank you for the great work you do on open-source projects |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
For loading data into postgis, the tool you want to look at is osm2pgsql. Choosing a postgres db for your basemap is not going to be great performance wise. Here is our guide on how to set up this part: https://maplibre.org/martin/recipe-basemap-postgis.html You can run planetiler to generate your planet every day, the basemap usually does not need to be that fresh. Does this answer your question? Btw: |
Beta Was this translation helpful? Give feedback.
-
|
To maybe get feedback on the docs: |
Beta Was this translation helpful? Give feedback.
For loading data into postgis, the tool you want to look at is osm2pgsql.
I am not sure if this is the best course of action for you.
Choosing a postgres db for your basemap is not going to be great performance wise.
For your base map you want it pre-tiled in an mbtiles/pmtiles format.
Doing this at runtime is fairly expensive for the higher zoom levels.
Here is our guide on how to set up this part:
https://maplibre.org/martin/recipe-basemap-postgis.html
You can run planetiler to generate your planet every day, the basemap usually does not need to be that fresh.
You can then overlay the dynamic data you need to be very fresh.
Does this answer your question?
Btw:
Osmf is happy to provide t…