Osm: Difference between revisions

From Personal wiki
(rewrite for more precise meaning)
(code-formatting)
Line 3: Line 3:
=== postgresql ===
=== postgresql ===


Data storage, mostly in planet_osm_* tables, but some smaller tables for e.g. coastlines in dbname=gis
Data storage, mostly in <code>planet_osm_*</code> tables, but some smaller tables for e.g. coastlines in <code>dbname=gis</code>


=== renderd ===
=== renderd ===
Line 14: Line 14:


== Container rights ==
== Container rights ==
* IP 10.0.3.10
* IP <code>10.0.3.10</code>
* Internet access for periodically downloading updates (changefiles), restricted from inside with no default route
* Internet access for periodically downloading updates (changefiles), restricted from inside with no default route
* read-write to /mnt/maps/(planet.bin.nodes) for database imports and as temporary storage of changefiles
* read-write to <code>/mnt/maps/(planet.bin.nodes)</code> for database imports and as temporary storage (<code>/mnt/maps/tmp</code>) of changefiles
* read-write to /var/lib/postgresql/ to keep the database on a separate zfs dataset
* read-write to <code>/var/lib/postgresql/</code> to keep the database on a separate zfs dataset


OpenStreetmap container that contains a postgresql database of the planet as cartography, the renderd daemon and an apache2 webserver to serve rendered vector tiles.
OpenStreetmap container that contains a postgresql database of the planet as cartography, the renderd daemon and an apache2 webserver to serve rendered vector tiles.

Revision as of 20:43, 5 April 2022

LXC container

Cartography pipeline

postgresql

Data storage, mostly in planet_osm_* tables, but some smaller tables for e.g. coastlines in dbname=gis

renderd

Rendering daemon

apache2

Requests rendering daemon if tiles not present in cache and serves them on port 80

Container rights

  • IP 10.0.3.10
  • Internet access for periodically downloading updates (changefiles), restricted from inside with no default route
  • read-write to /mnt/maps/(planet.bin.nodes) for database imports and as temporary storage (/mnt/maps/tmp) of changefiles
  • read-write to /var/lib/postgresql/ to keep the database on a separate zfs dataset

OpenStreetmap container that contains a postgresql database of the planet as cartography, the renderd daemon and an apache2 webserver to serve rendered vector tiles.