Skip to content

🐳 🗺️ Docker environment for GeoDjango Development

Notifications You must be signed in to change notification settings

KnowledgePending/GeoDjango-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published