Skip to content

Dockerizing Django with Postgres, Gunicorn, and Nginx

License

Notifications You must be signed in to change notification settings

gabn1995/django-on-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerizing Django with Postgres, Gunicorn, and Nginx

Want to learn how to build this?

Check out the post.

Want to use this project?

  1. Fork/Clone

  2. Build the images and run the containers:

    • development (django default server):
    $ docker-compose up -d --build

    Test it out at http://localhost:8000

    App's folder is mounted into container and your changes apply automatically.

    • production (gunicorn + nginx):
    $ docker-compose -f docker-compose.prod.yml up --build -d

    No mounted folders -- to apply changes container should be rebuilt

    Test it out at http://localhost:1337

About

Dockerizing Django with Postgres, Gunicorn, and Nginx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.0%
  • Dockerfile 9.0%
  • Shell 5.7%
  • HTML 4.3%