Sign inSign up

bryankp/geodjango

By bryankp

•Updated almost 7 years ago

🐳 🗺️ Docker environment for GeoDjango Development

Image
0

505

bryankp/geodjango repository overview

⁠GeoDjango Docker environment⁠

🐳 🗺️ 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

Tag summary

Content type

Image

Digest

Size

269.7 MB

Last updated

almost 7 years ago

docker pull bryankp/geodjango