{"id":31585054,"url":"https://github.com/openescuela/demo-docker-django","last_synced_at":"2026-04-11T05:33:33.599Z","repository":{"id":316593204,"uuid":"1061837232","full_name":"openescuela/demo-docker-django","owner":"openescuela","description":"Ce projet montre comment déployer une application Django avec Docker, PostgreSQL, Gunicorn et Nginx sur Windows (WSL2). Il inclut la configuration avec Docker Compose, prête pour la production, ainsi qu’un tutoriel complet disponible en vidéo sur YouTube: https://youtu.be/_HDcn4_ecvU","archived":false,"fork":false,"pushed_at":"2025-09-22T13:32:35.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-06T01:27:44.353Z","etag":null,"topics":["django","docker","gunicorn","nginx","postgresql","python"],"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/openescuela.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-22T13:00:29.000Z","updated_at":"2025-09-22T13:34:50.000Z","dependencies_parsed_at":"2025-10-01T05:34:33.424Z","dependency_job_id":null,"html_url":"https://github.com/openescuela/demo-docker-django","commit_stats":null,"previous_names":["openescuela/demo-docker-django"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openescuela/demo-docker-django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openescuela%2Fdemo-docker-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openescuela%2Fdemo-docker-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openescuela%2Fdemo-docker-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openescuela%2Fdemo-docker-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openescuela","download_url":"https://codeload.github.com/openescuela/demo-docker-django/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openescuela%2Fdemo-docker-django/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["django","docker","gunicorn","nginx","postgresql","python"],"created_at":"2025-10-06T01:26:46.837Z","updated_at":"2026-04-11T05:33:33.568Z","avatar_url":"https://github.com/openescuela.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Déploiement d’une application Django avec Docker, PostgreSQL, Nginx et Gunicorn (Windows)\n\nCe projet est un tutoriel complet montrant comment déployer une application **Django** en production à l’aide de **Docker**, avec une base de données **PostgreSQL**, le serveur d’application **Gunicorn** et un reverse proxy **Nginx**, le tout fonctionnant sur **Windows (via WSL2 et Docker Desktop)**.\n\n---\n\n## 📌 Fonctionnalités principales\n- Création d’un projet Django de zéro.\n- Configuration d’un `Dockerfile` pour Django + Gunicorn.\n- Mise en place d’un service PostgreSQL à partir de l’image officielle Docker Hub.\n- Configuration de **Nginx** comme reverse proxy et serveur statique.\n- Orchestration avec **docker-compose**.\n- Déploiement prêt pour la production sur Windows.\n\n---\n\n## 🛠️ Technologies utilisées\n- **Django** (Framework Python pour le web)  \n- **PostgreSQL** (Base de données relationnelle)  \n- **Gunicorn** (Serveur d’application WSGI)  \n- **Nginx** (Reverse proxy \u0026 serveur web)  \n- **Docker** \u0026 **Docker Compose**  \n- **Windows + WSL2**  \n\n---\n\n## 📂 Structure du projet\n.\n├── django_project/ # Code source Django\n├── nginx/ # Configuration Nginx\n│ └── nginx.conf\n├── Dockerfile # Image Django + Gunicorn\n├── docker-compose.yml # Orchestration des services\n└── requirements.txt # Dépendances Python\n\n\n---\n\n## 🚀 Lancer le projet\n\n### 1️⃣ Prérequis\nAvant de commencer, assurez-vous d’avoir installé :  \n- [Docker Desktop](https://www.docker.com/products/docker-desktop/)  \n- [Python](https://www.python.org/downloads/)  \n\nActivez également **WSL2** sur Windows pour exécuter correctement les conteneurs.\n\n### 2️⃣ Cloner le projet\n```bash\ngit clone https://github.com/openescuela/demo-docker-django.git\ncd demo-docker-django\n\n3️⃣ Construire et lancer les conteneurs\n\ndocker-compose up --build\n\n4️⃣ Accéder à l’application\n\nUne fois les conteneurs démarrés, ouvrez :\n👉 http://localhost\n\n📺 Tutoriel vidéo\n\nUn tutoriel détaillé expliquant chaque étape est disponible sur YouTube.\n👉 Le lien de la vidéo est disponible dans la description du dépôt GitHub.\n\n📜 Licence\n\nCe projet est publié sous la licence MIT. Vous êtes libre de l’utiliser, le modifier et le partager.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenescuela%2Fdemo-docker-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenescuela%2Fdemo-docker-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenescuela%2Fdemo-docker-django/lists"}