Skip to content

Instantly share code, notes, and snippets.

@nazywamsiepawel
Created February 14, 2017 12:16
Show Gist options
  • Save nazywamsiepawel/958c12ef70e7ae78670ef9a6adfe86c0 to your computer and use it in GitHub Desktop.
Save nazywamsiepawel/958c12ef70e7ae78670ef9a6adfe86c0 to your computer and use it in GitHub Desktop.
(sudo) docker pull mdillon/postgis:latest
Then just set your env vars:
export POSTGRES_IMAGE="mdillon/postgis"
export POSTGRES_IMAGE_VERSION="latest"
Then you just use the plugin to create a new database.
@nazywamsiepawel
Copy link
Author

CREATE EXTENSION postgis;
Click the Play button in the toolbar (or press F5) to “Execute the query.”

Now confirm that PostGIS is installed by running a PostGIS function:

SELECT postgis_full_version();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment