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]
|____README.md
|____postgres
| |____alpine
| |____initdb-postgis.sh
| |____Dockerfile
| |____update-postgis.sh
|____docker-compose.yml
|____.git
|____data
| |____.gitkeep
|____notebooks
|____jupyter
| |____Dockerfile
| |____fonts
NOTE: to install this environment both docker and docker-compose are required
- Clone the repository using git
git clone https://github.com/Mmoncadaisla/geo-toolkit.git
-
Move to the main repository's folder
-
Build with docker-compose build
docker-compose build
- Start the corresponding containers with docker-compose up
docker-compose up
- Access the link to access Jupyter within the notebooks directory
To access the database through psql
you could run the following,
- Open a new terminal in the postgres container
docker exec -it geo-toolkit_postgres_1 /bin/bash
- Initialize psql with user postgres
psql -U postgres