Coder Social home page Coder Social logo

knowledgepending / geodjango-docker Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 73 KB

🐳 πŸ—ΊοΈ Docker environment for GeoDjango Development

Dockerfile 100.00%
docker python3 python django geodjango server-side development-environment postgres postgis

geodjango-docker's Introduction

🐳 πŸ—ΊοΈ Docker environment for GeoDjango Development

Docker Pulls

For simple deployments on Heroku see Heroku GeoDjango Docker

Image details

  • Ubuntu 19.04 Disco Dingo
  • Python 3.6

Option 1. Build Docker Image

  • From within the directory of the Dockerfile execute the following command to build the image
docker build -t geodjango .
  • To run with bash and a shared volume
docker run -v <host_path>:<container_path> --network=host -ti geodjango bash
  • Start Postgres DB using a docker image with postgis support
docker run --network=host \
            -e POSTGRES_PASSWORD=<postgres_password> \
            -e POSTGRES_USER=<postgres_username> \
            -e POSTGRES_DB=<postgres_db_name> \
            -d kartoza/postgis

Option 2. Pull image from Docker Hub

docker pull bryankp/geodjango:latest
  • To run with bash and a shared volume
docker run -v <host_path>:<container_path> --network=host -ti bryankp/geodjango:latest bash
  • Start Postgres DB using a docker image with postgis support
docker run --network=host \
            -e POSTGRES_PASSWORD=<postgres_password> \
            -e POSTGRES_USER=<postgres_username> \
            -e POSTGRES_DB=<postgres_db_name> \
            -d kartoza/postgis

Example Programs

geodjango-docker's People

Stargazers

 avatar

Watchers

 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.