Code Monkey home page Code Monkey logo

docker-postgis's Introduction

Docker Postgis database + Importer

This postgis docker container is based on the official postgres docker image version 9.5 thus using debian:jessie as underlying OS. It creates a database 'gis' owned by user 'postgres' and installs the extension postgis. Further on osmosis and osm2pgsql are installed to be able to merge multiple OSM-files and import the result with osm2pgsql to the database 'gis'.

Usage


build container:

docker build -t geofabrik/postgis .

run geofabrik/postgis container and remove it immediately after it is beeing closed

docker run --rm --name postgis -v /path/to/desired/import/data:/data/import geofabrik/postgis

or

run geofabrik/postgis container

docker run --name postgis -v /path/to/desired/import/data:/data/import geofabrik/postgis

  • add "-e POSTGRES_PASSWORD=super_secret_password" to set a password
  • docker stop postgis
  • docker start postgis

docker rm postgis

e. g.: docker run --rm --name postgis -e POSTGRES_PASSWORD=pass -v $HOME/Desktop/import:/data/import geofabrik/postgis

excerpt from 'docker run --help'

Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
-e, --env=[]                    Set environment variables
-d, --detach                    Run container in background and print container ID
--rm                            Automatically remove the container when it exits
-v, --volume=[]                 Bind mount a volume

credits

The creation of this Open Source Docker container was sponsored by Siemens AG (Building Technologies Division).

docker-postgis's People

Contributors

knowname avatar nimmer avatar takacsm12 avatar

Stargazers

Florian Le Frioux avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.