Presenting the stack Postgis/Flask/Mapboxgl to display geographic data using vector tiles.
Presentation is hosted here: https://davidlacroix.github.io/postgis-mvt/slide/index.html. The presentation won't be complete without the small infrastructure that comes with it. Follow the instructions to get the whole thing working properly.
Add your variables in the .env
file:
- postgres password
- mapbox token
Then:
sudo docker-compose up -d
Sudoing docker is not secure but is faster. To setup your docker properly read this
# Connect to database
psql -h localhost -p 5555 -d postgres -U postgres
# Access container
sudo docker exec -it postgres-master /bin/bash
http://localhost:8001
# Access container
sudo docker exec -it webapp-master /bin/bash
http://localhost:8000
# Access container
sudo docker exec -it slide-master /bin/bash
sudo docker build -t data-master data-processing/
sudo docker run --link=postgres-master --network=global-network --env-file .env -it data-master