GeoDjango with Docker

606 views
Skip to first unread message

Tadeo C

unread,
Nov 30, 2016, 12:02:59 PM11/30/16
to Django users
Hi, I'm starting a project with GeoDjango and I want to use Docker containers to build the stack (GeoDjango, Nginx, Postgis) preferably Alpine base images.
Does anyone has successful done this before? Where can I find a useful docker-compose.yml or a tested and working updated image?
Thanks a lot,
Tadeo

Reza Shalbafzadeh

unread,
Dec 1, 2016, 9:09:04 AM12/1/16
to Django users
Hi Tadeo

GeoDjango is very similar to Django and you can modify existing Django dockerfiles to build your own images
have a look at this links
realpython django docker example
postgis django  dockerfile (outdated)
geodjango postgis dockerfile (outdated)
you can modify and build  them

PS:
make sure you really need docker for achieve your goal
managing docker images and creating them could be a headache
and in many cases using docker is a overkill
ex : for provisioning servers you can use puppet instead
 
Best Regards
Reza

Jani Tiainen

unread,
Dec 1, 2016, 9:34:50 AM12/1/16
to django...@googlegroups.com

Hi,

Basically what you need is to pick base distro you want to use. Installing PostGIS package usually brings in all the spatial libs Django expects so you're covered by that part. The rest is just putting Django served from your container.

So there is not much stuff involved.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7c0649e1-e2d8-4e56-9930-14e2f95135ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Jani Tiainen

hunter...@gmail.com

unread,
Dec 1, 2016, 10:52:52 AM12/1/16
to Django users
Hi Tadeo, I've recently gone through this exercise myself, and documented my progress in three posts:

Dan Tagg

unread,
Dec 1, 2016, 10:56:34 AM12/1/16
to django...@googlegroups.com
Cookie cutter is pretty awesome. Don't know whether it works with GeoDjango though.

Dan


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.



--
Wildman and Herring Limited, Registered Office: Sir Robert Peel House, 178 Bishopsgate, London, United Kingdom, EC2M 4NJ, Company no: 05766374

Tadeo C

unread,
Dec 1, 2016, 12:56:50 PM12/1/16
to Django users
Wow! Your posts looks amazingly detailed and comprehensive. I'm going to follow them careful. I can use Ubuntu for the meanwhile, no problem. Thank you very much for sharing this worthy material!
Reply all
Reply to author
Forward
0 new messages