Skip to content

The goal of this project is to learn docker but can be used as the basis for real projects.

Notifications You must be signed in to change notification settings

hugobrilhante/docker-django-gunicorn-nginx-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-gunicorn-nginx-postgres

The goal of this project is to learn docker but can be used as the basis for real projects.

Requirements

  • Docker 1.10.0+
  • Compose 1.6.0+

Up and Running

Assuming you've just cloned this repository, the following steps will get you up and running in no time!

Make our local directories.

   mkdir -p  logs media static postgres

Create the Django project using the docker-compose command.

   docker-compose run django django-admin.py startproject myproject .

Change the ownership of the new files.

    sudo chown -R $USER:$USER .

Lift all services (detached/background mode).

    docker-compose up -d

Access your instance at localhost:8000

About

The goal of this project is to learn docker but can be used as the basis for real projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published