Pg_tileserv Quickstart

This page contains a quickstart to help you get pg_tileserv up and running with Container Apps on Crunchy Bridge. We recommend you start with the quickstart to get an understanding of container apps.

About Pg_tileserv

From the project:

A PostGIS-only tile server in Go. Strip away all the other requirements, it just has to take in HTTP tile requests and form and execute SQL. In a sincere act of flattery, the API looks a lot like that of the Martin tile server.

Pg_tileserv with Container Apps Quickstart

First ensure you have Container Apps enabled with CREATE EXTENSION pgpodman;. Once enabled you’ll need your DATABASE_URL from Crunchy Bridge to include in the command. To start your pg_tileserv you can run:

SELECT run_container('-dt -p 5433:5433/tcp -e DATABASE_URL="<DATABASE_URL>" -e TS_HTTPPORT=5433');

Now you can visit your running pg_tileserv at your hostname:5433.