Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 1.38 KB

README.md

File metadata and controls

79 lines (52 loc) · 1.38 KB

Geo-Toolkit

What's in this repository

The environment contains the following main features,

  • PostgreSQL 12

  • PostGIS 3.0.2

  • Python 3.8

  • Jupyter

  • Libspatialindex

  • Libpostal

  • Python geospatial packages: GeoPandas, GeoPy, GeoAlchemy2, psycopg2, CARTOframes [develop]

Repository file structure

|____README.md
|____postgres
| |____alpine
| |____initdb-postgis.sh
| |____Dockerfile
| |____update-postgis.sh
|____docker-compose.yml
|____.git
|____data
| |____.gitkeep
|____notebooks
|____jupyter
| |____Dockerfile
| |____fonts

Set up with docker-compose

NOTE: to install this environment both docker and docker-compose are required

  1. Clone the repository using git
git clone https://github.com/Mmoncadaisla/geo-toolkit.git
  1. Move to the main repository's folder

  2. Build with docker-compose build

docker-compose build
  1. Start the corresponding containers with docker-compose up
docker-compose up
  1. Access the link to access Jupyter within the notebooks directory

To access the database through psql you could run the following,

  1. Open a new terminal in the postgres container
docker exec -it geo-toolkit_postgres_1 /bin/bash
  1. Initialize psql with user postgres
psql -U postgres