Git Product home page Git Product logo

su-database's Introduction

Docker image for postgis with osm2pgsql & shp2pgsql

Prerequisites

  • DockerとVScodeのインストール
  • Docker Extensionのインストール
  • Remote Development のインストール

起動

VScodeを立ち上げ、作業ディレクトリ内で以下をTerminalで実行する。 

docker-compose up -d --build

PosgreSQL / postGISへのアクセス

  1. VScodeのDocker extensionより docker-posrgresql-postgis-osm のコンテナが起動していることを確認し、その下にあるdocker-posrgresql-postgis-osm_dbを右クリックし、Attach Visual Studio Codeを選択する。
  2. 新たなVScodeが立ち上がり、dockerコンテナ内にアクセスすることができるようになる。
  3. 新たな作業フォルダを /work とする(ctrl (もしくはcommand) + o)。

停止

Dockerコンテナを停止するには、起動する際に用いたローカルの作業ディレクトリでTerminalで以下を実行する。

docker-compose down

もしくは、Docker extensionより、 docker-posrgresql-postgis-osm を右クリックし、Compose stopを実行する。

su-database's People

Contributors

reika727 avatar

Watchers

 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.