{"id":25808162,"url":"https://github.com/nullstone-io/docker-django","last_synced_at":"2026-05-26T16:08:29.112Z","repository":{"id":107481708,"uuid":"491250560","full_name":"nullstone-io/docker-django","owner":"nullstone-io","description":"Base docker image for Django","archived":false,"fork":false,"pushed_at":"2022-05-19T21:28:15.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T08:58:40.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nullstone-io.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-11T19:42:12.000Z","updated_at":"2022-05-26T12:55:32.000Z","dependencies_parsed_at":"2023-05-17T14:00:16.446Z","dependency_job_id":null,"html_url":"https://github.com/nullstone-io/docker-django","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nullstone-io/docker-django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstone-io%2Fdocker-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstone-io%2Fdocker-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstone-io%2Fdocker-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstone-io%2Fdocker-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nullstone-io","download_url":"https://codeload.github.com/nullstone-io/docker-django/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullstone-io%2Fdocker-django/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33528197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2025-02-27T21:59:26.368Z","updated_at":"2026-05-26T16:08:29.107Z","avatar_url":"https://github.com/nullstone-io.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nullstone/django\n\nDjango Base Image that is configured with different image tags for local and production.\nThis image is very opinionated; however, not restrictive.\n\n## Quick Reference\n\n- Maintained by\n  [Nullstone](https://nullstone.io)\n- Where to get help\n  [Nullstone Slack](https://join.slack.com/t/nullstone-community/signup)\n\n## Supported Tags and respective `Dockerfile` links\n\n- [local](local.Dockerfile)\n- [latest](Dockerfile)\n\n## Images\n\nThis repository builds 2 variants of images: a local image and a production image.\n\nAll images are configured to log to stdout/stderr.\n\n### Local\n\nThe local image variant is used to run python django in an isolated development environment on your local machine.\n\n#### Dev Server\n\nThe `local` variant is configured to run the built-in server using the conventional `./manage.py runserver`.\nThis image does not contain a `manage.py`; this requires a valid `manage.py` located in your repository to work properly.\n\nThe server listens on port `9000` by default to align with Nullstone conventions to quickly attach an nginx sidecar (example coming soon)\nTo change this port, use `PORT` environment variable.\n\n#### Dependencies\n\nThis image detects `requirements.txt` or `poetry.lock` files and installs dependencies on boot.\nTo update dependencies in a container using this image, restart the docker container. \nOn boot, the image will run either `pip install -r requirements.txt` or `poetry install`.\n\n#### Databases\n\nDatabase environment variables are mapped to align with Nullstone conventions.\n- If `POSTGRES_URL` is specified, set:\n  - `DB_ADAPTER=postgresql`\n  - `DATABASE_URL=$POSTGRES_URL`\n  - `SQLALCHEMY_DATABASE_URI=$POSTGRES_URL`\n- If `MYSQL_URL` is specified, set\n  - `DB_ADAPTER=mysql`\n  - `DATABASE_URL=$MYSQL_URL`\n  - `SQLALCHEMY_DATABASE_URI=$MYSQL_URL`\n\n### Production\n\nThe production image variant (any image tags that don't contain `local`) is used to run django in a production environment.\n\n#### App Name\n\nWhen creating a `Dockerfile` for your app, you will need to set `WSGI_APP` based on your application name.\nThe format for typical Django projects is `\u003cproject-directory\u003e.wsgi:application` where `\u003cproject-directory\u003e` is the name of the directory that contains your `wsgi.py`. \n\n#### Gunicorn\n\nThe production variant is configured to run a production server using `gunicorn`.\nThere is a standard `gunicorn.conf.py` packaged with this image that accepts the following env vars:\n- `WSGI_APP` - accepts `\u003cmodule\u003e:\u003capp\u003e` to run \n- `BINDING` - `\u003caddr\u003e:\u003cport\u003e`\n- `WEB_CONCURRENCY` - Sets number of workers; defaults to 2 * CPUs\n- `PYTHON_MAX_THREADS` - Sets number of threads; defaults to 1\n\n#### Databases\n\nDatabase environment variables are mapped to align with Nullstone conventions.\n- If `POSTGRES_URL` is specified, set:\n    - `DB_ADAPTER=postgresql`\n    - `DATABASE_URL=$POSTGRES_URL`\n    - `SQLALCHEMY_DATABASE_URI=$POSTGRES_URL`\n- If `MYSQL_URL` is specified, set\n    - `DB_ADAPTER=mysql`\n    - `DATABASE_URL=$MYSQL_URL`\n    - `SQLALCHEMY_DATABASE_URI=$MYSQL_URL`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullstone-io%2Fdocker-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullstone-io%2Fdocker-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullstone-io%2Fdocker-django/lists"}