🐳 🗺️ Docker environment for GeoDjango Development
For simple deployments on Heroku see Heroku GeoDjango Docker
- Ubuntu 19.04 Disco Dingo
- Python 3.6
- 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
- Go to the repository page bryankp/geodjango
- Pull the latest image
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
- Official GeoDjango Tutorial