{"id":23537440,"url":"https://github.com/thetoriqul/docker-host-like-env","last_synced_at":"2025-10-11T20:36:35.687Z","repository":{"id":263165172,"uuid":"889556428","full_name":"TheToriqul/docker-host-like-env","owner":"TheToriqul","description":"The project implements a layered architecture where multiple services coexist within a single container, managed by Supervisord as the process manager.","archived":false,"fork":false,"pushed_at":"2024-11-16T17:13:18.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T11:06:37.043Z","etag":null,"topics":["docker","docker-environment","docker-host"],"latest_commit_sha":null,"homepage":"https://thetoriqul.com","language":"Dockerfile","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/TheToriqul.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-11-16T16:21:27.000Z","updated_at":"2024-11-16T17:13:21.000Z","dependencies_parsed_at":"2024-11-16T17:37:02.882Z","dependency_job_id":null,"html_url":"https://github.com/TheToriqul/docker-host-like-env","commit_stats":null,"previous_names":["thetoriqul/docker-host-like-env"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheToriqul/docker-host-like-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheToriqul%2Fdocker-host-like-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheToriqul%2Fdocker-host-like-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheToriqul%2Fdocker-host-like-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheToriqul%2Fdocker-host-like-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheToriqul","download_url":"https://codeload.github.com/TheToriqul/docker-host-like-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheToriqul%2Fdocker-host-like-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008617,"owners_count":26084480,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["docker","docker-environment","docker-host"],"created_at":"2024-12-26T03:15:31.451Z","updated_at":"2025-10-11T20:36:35.659Z","avatar_url":"https://github.com/TheToriqul.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐳 Docker Host-Like Environment\n\n[![GitHub](https://img.shields.io/badge/GitHub-Docker_Host_Like_Env-blue?style=flat\u0026logo=github)](https://github.com/TheToriqul/docker-host-like-env)\n[![GitHub stars](https://img.shields.io/github/stars/TheToriqul/docker-host-like-env?style=social)](https://github.com/TheToriqul/docker-host-like-env/stargazers)\n![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=flat\u0026logo=docker\u0026logoColor=white)\n![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=flat\u0026logo=ubuntu\u0026logoColor=white)\n![Nginx](https://img.shields.io/badge/nginx-%23009639.svg?style=flat\u0026logo=nginx\u0026logoColor=white)\n![MySQL](https://img.shields.io/badge/mysql-%2300f.svg?style=flat\u0026logo=mysql\u0026logoColor=white)\n\n## 📋 Overview\n\nThis project demonstrates my journey in creating a sophisticated Docker container environment that mimics a traditional host setup. Through this implementation, I've developed a deep understanding of containerization principles and multi-service orchestration using Docker. The environment runs multiple services (Nginx, MySQL) managed by Supervisord, showcasing practical containerization skills in a real-world scenario.\n\n## 🏗 Technical Architecture\n\nThe project implements a layered architecture where multiple services coexist within a single container, managed by Supervisord as the process manager.\n\n```mermaid\ngraph TD\n    A[Docker Container] --\u003e B[Supervisord]\n    B --\u003e C[Nginx Web Server]\n    B --\u003e D[MySQL Database]\n    C --\u003e E[Port 80]\n    D --\u003e F[Port 3306]\n    \n    style A fill:#1a73e8,stroke:#0d47a1,stroke-width:2px,color:white\n    style B fill:#4caf50,stroke:#2e7d32,stroke-width:2px,color:white\n    style C fill:#00acc1,stroke:#006064,stroke-width:2px,color:white\n    style D fill:#fb8c00,stroke:#ef6c00,stroke-width:2px,color:white\n    style E fill:#78909c,stroke:#546e7a,stroke-width:2px,color:white\n    style F fill:#78909c,stroke:#546e7a,stroke-width:2px,color:white\n```\n\n## 💻 Technical Stack\n\n- **Base System**: Ubuntu Latest\n- **Process Manager**: Supervisord\n- **Web Server**: Nginx\n- **Database**: MySQL Server\n- **Container Runtime**: Docker\n\n## ⭐ Key Features\n\n1. Multi-Service Container Management\n   - Supervisord process orchestration\n   - Automated service recovery\n   - Unified logging system\n\n2. Web Server Configuration\n   - Nginx server setup\n   - Static content serving\n   - Custom configuration capability\n\n3. Database Implementation\n   - MySQL server integration\n   - Persistent storage support\n   - Secure default configuration\n\n4. Process Management\n   - Service health monitoring\n   - Automatic restart capabilities\n   - Process isolation\n\n5. Networking\n   - Port mapping and exposure\n   - Inter-service communication\n   - Network isolation\n\n6. Logging and Monitoring\n   - Centralized logging\n   - Service status monitoring\n   - Debug capabilities\n\n## 📚 Learning Journey\n\n### Technical Mastery:\n\n1. Docker container lifecycle management\n2. Multi-process containerization patterns\n3. Service orchestration with Supervisord\n4. Container networking principles\n5. Docker image optimization techniques\n\n### Professional Development:\n\n1. System architecture design\n2. Service reliability engineering\n3. Documentation best practices\n4. Problem-solving methodology\n5. Infrastructure as Code principles\n\n## 🔄 Future Enhancements\n\n\u003cdetails\u003e\n\u003csummary\u003eView Planned Improvements\u003c/summary\u003e\n\n1. Implement container health checks\n2. Add Redis caching layer\n3. Enhance logging with ELK stack\n4. Implement automated backups\n5. Add monitoring with Prometheus\n6. Develop CI/CD pipeline integration\n\u003c/details\u003e\n\n## ⚙️ Installation\n\n\u003cdetails\u003e\n\u003csummary\u003eView Installation Details\u003c/summary\u003e\n\n### Prerequisites\n\n- Docker Engine installed\n- Git for repository cloning\n- 4GB RAM minimum\n- 10GB free disk space\n\n### Setup Steps\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/TheToriqul/docker-host-like-env.git\ncd docker-host-like-env\n```\n\n2. Build the Docker image:\n```bash\ndocker build -t my_host_like_env .\n```\n\n3. Run the container:\n```bash\ndocker run -d --name my_container -p 80:80 -p 3306:3306 my_host_like_env\n```\n\n### Configuration\n\n```env\nMYSQL_ROOT_PASSWORD=your_secure_password\nNGINX_PORT=80\nMYSQL_PORT=3306\n```\n\n\u003c/details\u003e\n\n## 📫 Contact\n\n- 📧 Email: toriqul.int@gmail.com\n- 📱 Phone: +65 8936 7705, +8801765 939006\n\n## 🔗 Project Links\n\n- [GitHub Repository](https://github.com/TheToriqul/docker-host-like-env)\n- [Documentation](https://github.com/TheToriqul/docker-host-like-env/wiki)\n\n## 👏 Acknowledgments\n\n- [Poridhi for excellent labs](https://poridhi.io/)\n- Docker community for extensive documentation\n- Open source contributors for inspiration\n\n---\n\nFeel free to explore, modify, and build upon this configuration as part of my learning journey. You're also welcome to learn from it, and I wish you the best of luck!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetoriqul%2Fdocker-host-like-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthetoriqul%2Fdocker-host-like-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthetoriqul%2Fdocker-host-like-env/lists"}