{"id":42301844,"url":"https://github.com/lukin0110/docker-django-boilerplate","last_synced_at":"2026-01-27T10:37:35.423Z","repository":{"id":9887625,"uuid":"63671267","full_name":"lukin0110/docker-django-boilerplate","owner":"lukin0110","description":"Minimal boilerplate setup for a Django project with Docker.","archived":false,"fork":false,"pushed_at":"2022-04-22T21:52:57.000Z","size":43,"stargazers_count":47,"open_issues_count":5,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-13T09:34:59.819Z","etag":null,"topics":["boilerplate-template","django","docker","nginx","project-creation","project-template","python-3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukin0110.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-19T07:25:41.000Z","updated_at":"2025-03-16T05:02:07.000Z","dependencies_parsed_at":"2022-08-07T05:15:14.242Z","dependency_job_id":null,"html_url":"https://github.com/lukin0110/docker-django-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lukin0110/docker-django-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukin0110%2Fdocker-django-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukin0110%2Fdocker-django-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukin0110%2Fdocker-django-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukin0110%2Fdocker-django-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukin0110","download_url":"https://codeload.github.com/lukin0110/docker-django-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukin0110%2Fdocker-django-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28812222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boilerplate-template","django","docker","nginx","project-creation","project-template","python-3"],"created_at":"2026-01-27T10:37:32.245Z","updated_at":"2026-01-27T10:37:35.417Z","avatar_url":"https://github.com/lukin0110.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Django Boilerplate\n\nMinimal setup for a Django project with Docker, following \n[the 12factor app](https://12factor.net/) principles. This repo contains \nskeleton code to get up and running with Docker \u0026 Django quickly. The \nimage uses [uWSGI](https://uwsgi-docs.readthedocs.io/) to host the \nDjango project. It's up to you to put Nginx or Apache in front in \nproduction.  \n\nThis image is **not intended** as being a base image for a Django project.\nIt's a boilerplate, you can copy/paste this and use it as a base to \nstart a project. The image contains the *hello* Django project. \n[Replace the word *hello* with the name of *your project*](docs/rename.md).\n\n## Usage\n\nDownload the repository:\n```\n$ git clone https://github.com/lukin0110/docker-django-boilerplate.git\n```\n\nInit project:\n```\n$ cd docker-django-boilerplate\n$ docker-compose build\n```\n\nSetup database:\n```\n$ docker-compose up -d postgres\n$ docker-compose run app setup_db\n```\n\nLaunch:\n```\n$ docker-compose up app\n```\n\nLaunch Nginx *(optional)*:\n```\n$ docker-compose up web\n```\n\n*Now your django app is available on http://localhost, but it's optional for development*\n\n## Container commands\n\nThe image has \n\nRun a command:\n```\n$ docker-compose run app \u003ccommand\u003e\n```\n\nAvailable commands:\n\n| Command   | Description                                                                     |\n|-----------|---------------------------------------------------------------------------------|\n| dev       | Start a normal Django development server                                        |\n| bash      | Start a bash shell                                                              |\n| manage    | Start manage.py                                                                 |\n| setup_db  | Setup the initial database. Configure *$POSTGRES_DB_NAME* in docker-compose.yml |\n| lint      | Run pylint                                                                      |\n| python    | Run a python command                                                            |\n| shell     | Start a Django Python shell                                                     |\n| uwsgi     | Run uwsgi server                                                                |\n| help      | Show this message                                                               |\n\n### Create a Django app\n\n```\n$ docker-compose run app manage startapp myapp\n```\n\n### Create a super user\n```\n$ docker-compose run app manage createsuperuser\n```\n\n## Awesome resources\n\nUseful awesome list to learn more about all the different components used in this repository.\n\n* [Docker](https://github.com/veggiemonk/awesome-docker)\n* [Django](https://gitlab.com/rosarior/awesome-django)\n* [Python](https://github.com/vinta/awesome-python)\n* [Nginx](https://github.com/agile6v/awesome-nginx)\n* [AWS](https://github.com/donnemartin/awesome-aws)\n\n## Useful links\n\n* [Docker Hub Python](https://hub.docker.com/_/python/)\n* [Docker Hub Postgres](https://hub.docker.com/_/postgres/)\n* [Docker compose Postgres environment variables](http://stackoverflow.com/questions/29580798/docker-compose-environment-variables)\n* [Quickstart: Docker Compose and Django](https://docs.docker.com/compose/django/)\n* [Best practices for writing Dockerfiles](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukin0110%2Fdocker-django-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukin0110%2Fdocker-django-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukin0110%2Fdocker-django-boilerplate/lists"}