Public Repository

Last pushed: 2 years ago
Short Description
Image to run geodjango apps
Full Description

Start image

 docker run -i -t -p 80:80 jhonatasmartins/geodjango /bin/bash

Environment
Python 2.7, 3.3, 3.4

Postgresql 9.3 with Postgis 2.1
user: postgres
pass: postgres

to enable postgis after you create your db

psql dbname
CREATE EXTENSION postgis;
CREATE EXTENSION postgis_topology;

Django 1.7

App GeoDjango

APP_WRAPPER ~/geo-django

APP ~/geo-django/geodjango

ENV ~/geo-django/geodjango_env

To run application

service postgresql start
source ENV/bin/activate
cd ~/geo-django
gunircon -b :80 geodjango.wsgi &

Reference:

http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21UbuntuPGSQL93Apt

https://www.digitalocean.com/community/tutorials/docker-explained-how-to-containerize-python-web-applications

https://docs.djangoproject.com/en/dev/ref/contrib/gis/

Docker Pull Command
Owner
jhonatasmartins

Comments (2)
jhonatasmartins
2 years ago

Hi,

Sorry, I don't have dockerfile for this image because I built it manually

annapowellsmith
2 years ago

Could you possibly share the Dockerfile for this image?