geobeyond / Arpav-PPCV-backend

Backend di Piattaforma Proiezioni Climatiche per il Nord-Est.
Creative Commons Attribution 4.0 International
0 stars 1 forks source link

Integrate traefik, vector tile server and municipalities #130

Closed ricardogsilva closed 1 month ago

ricardogsilva commented 1 month ago

This PR integrates traefik in the docker compose stack of the system.

Traefik is introduced in order to serve as a reverse proxy and to expose a simpler interface to the outside world. The traefik dashboard is enabled only on the dev stack.

Traefik is made to route requests like this:

Also included in this PR is the integration of martin with a custom configuration that exposes both Italian municipalities and observation stations as vector tiles. These can be accessed, for example, at:

http://localhost:8877/vector-tiles/municipalities/{z}/{x}/{y}
http://localhost:8877/vector-tiles/stations/{z}/{x}/{y}

Here is a sample screenshot, using QGIS:

image

Support for municipalities is introduced by adding the arpav-ppcv bootstrap municipalities CLI command, which is able to import the GeoJSON file with municipality features, which was already part of the repo.