{"id":14972712,"url":"https://github.com/dev-vivekkumarverma/django-app-dockerisation","last_synced_at":"2026-01-19T07:32:55.281Z","repository":{"id":245417799,"uuid":"818180933","full_name":"dev-vivekkumarverma/django-app-dockerisation","owner":"dev-vivekkumarverma","description":"Dockerised Django app backend (DRF)  with database( postgresql ) running in same network but in different container.","archived":false,"fork":false,"pushed_at":"2024-06-21T09:45:13.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T00:36:23.967Z","etag":null,"topics":["django","django-application","django-rest-framework","docker","docker-compose","docker-network","dockerfile","dockerizing-django-app"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-vivekkumarverma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-21T09:17:48.000Z","updated_at":"2024-06-21T10:15:34.000Z","dependencies_parsed_at":"2024-06-22T03:08:50.084Z","dependency_job_id":null,"html_url":"https://github.com/dev-vivekkumarverma/django-app-dockerisation","commit_stats":null,"previous_names":["dev-vivekkumarverma/django-app-dockerisation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-vivekkumarverma%2Fdjango-app-dockerisation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-vivekkumarverma%2Fdjango-app-dockerisation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-vivekkumarverma%2Fdjango-app-dockerisation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-vivekkumarverma%2Fdjango-app-dockerisation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-vivekkumarverma","download_url":"https://codeload.github.com/dev-vivekkumarverma/django-app-dockerisation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457742,"owners_count":20941906,"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":["django","django-application","django-rest-framework","docker","docker-compose","docker-network","dockerfile","dockerizing-django-app"],"created_at":"2024-09-24T13:47:24.406Z","updated_at":"2026-01-19T07:32:55.249Z","avatar_url":"https://github.com/dev-vivekkumarverma.png","language":"Python","readme":"# Django App Dockerization\n\nThis repository contains a Django application `say_current_time` that is containerized using Docker. Follow the instructions below to clone the repository, navigate to the project directory, and run the project using Docker Compose.\n\n## Prerequisites\n\nEnsure you have the following installed on your system:\n- Docker\n- Docker Compose\n- PostgreSQL (running in the same network `testnetwork`)\n\n## Clone the Repository\n\nClone the repository to your local machine using the following command:\n\n```sh\ngit clone \u003crepository-url\u003e\n```\n\nReplace `\u003crepository-url\u003e` with the actual URL of your GitHub repository.\n\n## Navigate to the Project Directory\n\nChange your directory to the cloned repository:\n\n```sh\ncd django-app-dockerisation\n```\n\n## Project Structure\n\nThe project directory contains the following structure:\n\n```\ndjango-app-dockerisation/\n│\n├── saycurrenttime/\n│   ├── __init__.py\n│   ├── asgi.py\n│   ├── settings.py\n│   ├── urls.py\n│   ├── wsgi.py\n│\n├── Dockerfile\n├── docker-compose.yaml\n├── manage.py\n├── README.md\n├── requirements.txt\n├── start.sh\n└── .env\n```\n\n## Environment Variables\n\nThe environment variables required for the database configuration are stored in the `.env` file. Ensure your `.env` file contains the following variables:\n\n```\ndb_engine=django.db.backends.postgresql\ndb_host=\u003cyour_db_host\u003e\ndb_port=\u003cyour_db_port\u003e\ndb_user=\u003cyour_db_user\u003e\ndb_pass=\u003cyour_db_pass\u003e\ndb_name=\u003cyour_db_name\u003e\n```\n\nReplace `\u003cyour_db_host\u003e`, `\u003cyour_db_port\u003e`, `\u003cyour_db_user\u003e`, `\u003cyour_db_pass\u003e`, and `\u003cyour_db_name\u003e` with the actual values for your PostgreSQL database.\n\n## Build and Run the Project\n\nUse Docker Compose to build and run the project:\n\n```sh\ndocker-compose up -d --build\n```\n\nThis command will build the Docker image and start the containers in detached mode.\n\n## Access the Application\n\nThe application will be accessible at `http://localhost:8000`.\n\n## Stopping the Application\n\nTo stop the application, use the following command:\n\n```sh\ndocker-compose down\n```\n\nThis will stop and remove the containers created by Docker Compose.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-vivekkumarverma%2Fdjango-app-dockerisation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-vivekkumarverma%2Fdjango-app-dockerisation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-vivekkumarverma%2Fdjango-app-dockerisation/lists"}