OSGeo

Setup a PostgreSQL database with PostGIS with Docker

Basic Descriptive Works

  • Write a summary of why PostgreSQL + PostGIS is an important factor in a GIS stack.
  • Write a summary of what Docker is and why Docker should be used to containerise PostgreSQL (with PostGIS)

Environment Setup

  • Install Docker on your local machine
  • Get familiar with some basic Docker commands (docker run, docker pull, docker stop, docker ps, etc)

Creating the container

  • Create a volume to persist your data
  • Create a database container
  • Start the container
  • Connect to the containerised database using QGIS or PgAdmin and add some data to the database

Submit

  • Add all of your code/documentation to a github repo and submit the link

(An example: https://alexurquhart.com/post/set-up-postgis-with-docker/)

You make also make use of docker-compose.

Task tags

  • postgresql
  • docker
  • coding
  • databases

Students who completed this task

Navya Garg, Lucifer, mdu02

Task type

  • code Code
  • chrome_reader_mode Documentation / Training
close

2019