{"id":30092772,"url":"https://github.com/mrtolouei/laravel-dockerized","last_synced_at":"2026-05-03T20:39:59.011Z","repository":{"id":306749079,"uuid":"1027100965","full_name":"mrtolouei/laravel-dockerized","owner":"mrtolouei","description":"A complete Laravel project with Docker configuration for easy development and quick deployment","archived":false,"fork":false,"pushed_at":"2025-07-27T16:03:29.000Z","size":74,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-09T08:19:34.813Z","etag":null,"topics":["docker","docker-compose","laravel","laravel-docker","laravel-dockerize"],"latest_commit_sha":null,"homepage":"","language":"Blade","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/mrtolouei.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}},"created_at":"2025-07-27T10:12:17.000Z","updated_at":"2025-08-06T07:16:37.000Z","dependencies_parsed_at":"2025-07-27T12:24:48.301Z","dependency_job_id":null,"html_url":"https://github.com/mrtolouei/laravel-dockerized","commit_stats":null,"previous_names":["mrtolouei/laravel-dockerized"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mrtolouei/laravel-dockerized","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtolouei%2Flaravel-dockerized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtolouei%2Flaravel-dockerized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtolouei%2Flaravel-dockerized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtolouei%2Flaravel-dockerized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrtolouei","download_url":"https://codeload.github.com/mrtolouei/laravel-dockerized/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtolouei%2Flaravel-dockerized/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32584646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["docker","docker-compose","laravel","laravel-docker","laravel-dockerize"],"created_at":"2025-08-09T08:04:31.693Z","updated_at":"2026-05-03T20:39:59.003Z","avatar_url":"https://github.com/mrtolouei.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Laravel Dockerized Project\nA complete Laravel project with Docker configuration for easy development and quick deployment\n\n[![Laravel](https://img.shields.io/badge/Laravel-FF2D20?style=for-the-badge\u0026logo=laravel\u0026logoColor=white)](https://laravel.com)\n[![Docker](https://img.shields.io/badge/Docker-2CA5E0?style=for-the-badge\u0026logo=docker\u0026logoColor=white)](https://www.docker.com)\n[![PHP](https://img.shields.io/badge/PHP-8.3-777BB4?style=for-the-badge\u0026logo=php\u0026logoColor=white)](https://php.net)\n[![PostgreSQL](https://img.shields.io/badge/PostgreSQL-16-316192?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white)](https://www.postgresql.org)\n[![MySQL](https://img.shields.io/badge/MySQL-8.0-005C84?style=for-the-badge\u0026logo=mysql\u0026logoColor=white)](https://www.mysql.com)\n[![Redis](https://img.shields.io/badge/Redis-7.0-DC382D?style=for-the-badge\u0026logo=redis\u0026logoColor=white)](https://redis.io)\n\n## ✨ Project Features\n- ✅ Complete Docker and docker-compose configuration\n- ✅ PHP 8.3 with all required Laravel extensions\n- ✅ Optimized Nginx server for Laravel\n- ✅ Database options: PostgreSQL 16 or MySQL 8.0\n- ✅ Redis for cache and queues\n- ✅ Auto-configured Xdebug for debugging\n- ✅ Cron job management with Supercronic\n- ✅ Consistent and reproducible development environment\n\n## 🛠 Prerequisites\n- [PHP](https://www.php.net/)\n- [Composer](https://getcomposer.org/download/)\n- [Docker](https://docs.docker.com/get-docker/)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n- [Git](https://git-scm.com/downloads)\n\n## 🚀 Project Setup\n1. Clone the project:\n    ```bash\n    git clone git@github.com:mrtolouei/laravel-dockerized.git\n    cd laravel-dockerized\n    ```\n2. Copy env file:\n    ```bash\n    cp .env.example .env\n    ```\n3. Build and run containers:\n    ```bash\n   docker compose up -d --build\n   ```\n4. Install dependencies:\n   ```bash\n   docker exec -it laravel_php composer install --ignore-platform-reqs\n    ```\n5. Generate application key:\n    ```bash\n    docker exec -it laravel_php php artisan key:generate\n    ```\n6. Run migrations:\n    ```bash\n   docker exec -it laravel_php php artisan migrate\n   ```\n7. Project is ready!:\n   - Open in browser: [http://localhost:8000](http://localhost:8000)\n\n## 🏗 Docker Structure\n- **nginx:** Web server with optimized configuration for Laravel\n- **php:** PHP 8.3 service with all required extensions\n- **postgres:** PostgreSQL 16 database (default)\n- **mysql:** MySQL 8.0 database (commented by default)\n- **redis:** Redis service for cache and queues\n\n## ⚙ Environment Configuration\n### Database Selection\nYou can choose between PostgreSQL or MySQL by:\n1. Uncommenting your preferred database service in `docker-compose.yml`\n2. Commenting out the other database service\n3. Updating the `.env` file with appropriate DB configuration\n\nDefault values in `.env` (PostgreSQL):\n\n```text\n# For PostgreSQL use: \nDB_CONNECTION=pgsql\nDB_HOST=postgres\nDB_PORT=5432\nDB_DATABASE=laravel\nDB_USERNAME=laravel\nDB_PASSWORD=secret\n\n# For MySQL use:\n# DB_CONNECTION=mysql\n# DB_HOST=mysql\n# DB_PORT=3306\n# DB_DATABASE=laravel\n# DB_USERNAME=laravel\n# DB_PASSWORD=secret\n```\n## 🔄 Switching Between Databases\n1. To switch to MySQL:\n    - Uncomment the MySQL service in `docker-compose.yml`\n    - Comment the PostgreSQL service\n    - Update `.env` with MySQL credentials\n    - Rebuild containers: `docker-compose up -d --build`\n2. To switch back to PostgreSQL:\n    - Uncomment the PostgreSQL service\n    - Comment the MySQL service\n    - Update `.env` with PostgreSQL credentials\n    - Rebuild containers: `docker-compose up -d --build`\n\nNote: Make sure to backup your data before switching databases as each uses different volumes.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtolouei%2Flaravel-dockerized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtolouei%2Flaravel-dockerized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtolouei%2Flaravel-dockerized/lists"}