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:
Requests that start with either /api or admin get routed to the backend application
Requests that start with /vector-tiles get routed to the martin vector tile server and get stripped of this /vector-tiles path before they are sent to martin (this is because martin only gained the ability to recognize a base path very recently and there is no official release that includes this feature yet)
In a subsequent PR, when it is time to integrate the frontend, we will be able to route it too.
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:
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.
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:
/api
oradmin
get routed to the backend application/vector-tiles
get routed to the martin vector tile server and get stripped of this/vector-tiles
path before they are sent to martin (this is because martin only gained the ability to recognize a base path very recently and there is no official release that includes this feature yet)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:
Here is a sample screenshot, using QGIS:
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.