{"id":14989195,"url":"https://github.com/ruddra/docker-django","last_synced_at":"2025-09-25T16:46:44.104Z","repository":{"id":52913697,"uuid":"65659765","full_name":"ruddra/docker-django","owner":"ruddra","description":"A complete docker package for django which is easy to understand and can be deployed anywhere(supports Data Science related libraries like numpy, scipy etc).","archived":false,"fork":false,"pushed_at":"2024-02-25T19:07:22.000Z","size":70,"stargazers_count":478,"open_issues_count":0,"forks_count":130,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-28T13:07:36.279Z","etag":null,"topics":["boilerplate","celery","container","django","docker","nginx","numpy","pandas","postgres","python","redis","scipy"],"latest_commit_sha":null,"homepage":"https://ruddra.com/docker-django-nginx-postgres/","language":"Python","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/ruddra.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"ruddra","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-08-14T09:45:37.000Z","updated_at":"2025-02-06T04:44:05.000Z","dependencies_parsed_at":"2024-09-20T00:02:19.173Z","dependency_job_id":null,"html_url":"https://github.com/ruddra/docker-django","commit_stats":{"total_commits":59,"total_committers":9,"mean_commits":6.555555555555555,"dds":"0.44067796610169496","last_synced_commit":"5aac86036a8548555e683d0247a0d7315e948314"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruddra%2Fdocker-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruddra%2Fdocker-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruddra%2Fdocker-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruddra%2Fdocker-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruddra","download_url":"https://codeload.github.com/ruddra/docker-django/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190250,"owners_count":20898702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","celery","container","django","docker","nginx","numpy","pandas","postgres","python","redis","scipy"],"created_at":"2024-09-24T14:17:50.657Z","updated_at":"2025-09-25T16:46:43.999Z","avatar_url":"https://github.com/ruddra.png","language":"Python","readme":"# Deploy Django using Nginx, Celery, Redis and Postgresql with Docker\n\nA boilerplate to deploy Django with cool stuff. Also serves as an example project from these tutorial:\n1. \u003ca href=\"https://ruddra.com/docker-django-nginx-postgres/\"\u003eDeploy Django, Gunicorn, NGINX, Postgresql using Docker\u003c/a\u003e\n2. \u003ca href=\"https://ruddra.com/serve-static-files-by-nginx-from-django-using-docker/\"\u003eServe Static Files by Nginx from Django using Docker\u003c/a\u003e\n3. \u003ca href=\"https://ruddra.com/docker-do-stuff-using-celery-using-redis-as-broker/\"\u003eDocker: Use Celery in Django(Redis as Broker)\u003c/a\u003e\n\nWhere it is described how this boilerplate was created from scratch so that you can build your own.\n\n## Advantages\n1. Ready to use with your django project.\n2. Combined with NGINX, Redis, Celery to handle relevent things.\n3. Alpine based images are used, so that sizes of the images are compartively low.\n4. Now comes built it with Numpy, Scipy and Pandas support. So you can integrate your datascience projects with this. [Instructions](#now-featuring-numpy-scipy-and-pandas) for integrating these libraries are also shared in the `Dockerfile`.\n5. With Numpy, Pandas and Scipy dependecies installed, the total size is 657MB(may differ if you have more packages). Without these, size reduces to 390MB.\n6. Now comes with support to install [Pillow](https://pypi.org/project/Pillow/) using django.\n\n## Now Featuring Numpy, Scipy and Pandas\nIn the [**`Dockerfile`**](https://github.com/ruddra/docker-django/blob/master/compose/django/Dockerfile), there are detailed instructions on how to install data science dependencies.\n\n**PS:** Here is a [**__`gist`__**](https://gist.github.com/ruddra/870d7a51238ddfa4b50375086c12a4f5) which is more useful for Numpy, Pandas, Scipy etc. And it is usable with this project's [`docker-compose.yml`](https://github.com/ruddra/docker-django/blob/master/docker-compose.yml) file. Just you need to replace the `Dockerfile` from [*./compose*](https://github.com/ruddra/docker-django/blob/master/compose) directory with the one in the *gist*.\n\n## Basic Usage\n1. First run **`make build`** inside root directory.\n2. Then run **`make up`** to start up the project for first time.\n3. Use/update environment variables from [**`.envs`**](https://github.com/ruddra/docker-django/blob/master/.envs) folder.\n\nCheckout the [commands](#commands) section for more usage.\n\n## Preview\nA default Django project resides in `src` directory. So, when you start the project, you will see the following screen in `8000` port:\n\n![Demo One](https://github.com/ruddra/blog-images/raw/master/Demo%201.png)\n\nAlso when you access the django container log via `make log-web`, you will see the following:\n\n![Demo Two](https://github.com/ruddra/blog-images/raw/master/Demo%202.png)\n\n## Commands\nTo use this project, run this commands:\n\n1. `make up` to build the project and starting containers.\n2. `make build` to build the project.\n3. `make start` to start containers if project has been up already.\n4. `make stop` to stop containers.\n5. `make shell-web` to shell access web container.\n6. `make shell-db` to shell access db container.\n7. `make shell-nginx` to shell access nginx container.\n8. `make logs-web` to log access web container.\n9. `make logs-db` to log access db container.\n10. `make logs-nginx` to log access nginx container.\n11. `make collectstatic` to put static files in static directory.\n12. `make log-web` to log access web container.\n13. `make log-db` to log access db container.\n14. `make log-nginx` to log access nginx container.\n15. `make restart` to restart containers.\n\n## License\n[MIT](https://github.com/ruddra/docker-django/blob/master/LICENSE).\n\n## Contribute\n\nFeel free to fork and create PR.\n","funding_links":["https://ko-fi.com/ruddra"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruddra%2Fdocker-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruddra%2Fdocker-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruddra%2Fdocker-django/lists"}