This is postgis2mbtiles for Docker
All the settings are in config.js
, so please make sure your own settings on this file before producing vector tile.
Please put environment variable for database settings.
db_user=$db_user
db_password=$db_password
db_host=host.docker.internal
db_port=5432
db_user=your user db_password=your password docker-compose up
Your mbtiles will be generated under data
directory.
This module uses tippecanoe
to convert geojson files to mbtiles. Please make sure to install it before running.
for MacOS
$ brew install tippecanoe
for Ubuntu
$ git clone https://github.com/mapbox/tippecanoe.git
$ cd tippecanoe
$ make -j
$ make install
Then,
$ npm install
$ db_user=$db_user \
db_password=$db_password \
db_host=localhost \
db_port=5432 \
npm run build