DEV Community

Discussion on: Deploying a python-django application using docker

Collapse
 
digitalw profile image
Benedict Wright

Hi,
Do you have any resources on how to deploy this setting with https?

Collapse
 
lewiskori profile image
Lewis kori

Hey, yeah. I found the easiest way was to use the Nginx container to serve the django static files. and since each container will be having an IP address mapped to the OS, you can have another Nginx instance directly on your deployment machine to point to the container. For this instance, you'll route traffic to 127.0.0.1:1221/ (I hope I make sense :) )

if you have any questions just dm me on twitter for clarifications.