{"id":26285379,"url":"https://github.com/islamsamy214/dockerize-laravel","last_synced_at":"2026-03-19T19:12:39.926Z","repository":{"id":203473445,"uuid":"709689298","full_name":"islamsamy214/dockerize-laravel","owner":"islamsamy214","description":"dockerize laravel application with the common extensions","archived":false,"fork":false,"pushed_at":"2025-08-10T17:44:41.000Z","size":105,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T19:25:18.511Z","etag":null,"topics":["docker","laravel","octane","php"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/islamsamy214.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null}},"created_at":"2023-10-25T07:46:42.000Z","updated_at":"2025-08-10T17:44:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a3b6b8b-4848-4e0a-ba5a-6411c018c1e0","html_url":"https://github.com/islamsamy214/dockerize-laravel","commit_stats":null,"previous_names":["islamsamy214/laravel-lumen-in-docker","islamsamy214/dockerize-laravel","islamsamy214/dockerize-laravel-lumen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/islamsamy214/dockerize-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islamsamy214%2Fdockerize-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islamsamy214%2Fdockerize-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islamsamy214%2Fdockerize-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islamsamy214%2Fdockerize-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/islamsamy214","download_url":"https://codeload.github.com/islamsamy214/dockerize-laravel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/islamsamy214%2Fdockerize-laravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29880761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"ssl_error","status_checked_at":"2026-02-26T23:50:46.793Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","laravel","octane","php"],"created_at":"2025-03-14T19:19:31.942Z","updated_at":"2026-02-27T01:32:38.853Z","avatar_url":"https://github.com/islamsamy214.png","language":"Dockerfile","funding_links":["https://www.buymeacoffee.com/islamsamy"],"categories":[],"sub_categories":[],"readme":"# Laravel in Docker  \n\n**Dockerize PHP Laravel projects with the common extensions**  \n\n## Introduction  \nThis is an edited clone of Sail but with PHP 8.3 version.  \n\n## How to Use  \n1. Add the provided files to your project.  \n2. Review the `Dockerfile` and remove any unneeded steps to minimize the image.  \n3. Run `docker compose up` or `sudo docker compose up`.  \n\n---\n\n## Optimal Configuration  \n\n### 1. Avoid Using `artisan serve`  \nThe `artisan serve` command is not designed for production environments and is better suited for development. To discourage its use, make the following adjustment:  \n\n**Comment out the default PHP command that uses `artisan serve`:**  \n```dockerfile\n# ENV SUPERVISOR_PHP_COMMAND=\"/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan serve --host=0.0.0.0 --port=80\"\n```\n2. Enable Octane with Swoole\n\nFor better performance, use Octane with Swoole. Uncomment and configure the Octane-related command in your Dockerfile:\n\nUse Octane with Swoole for improved performance:\n\n```dockerfile\nENV SUPERVISOR_PHP_COMMAND=\"/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=swoole --host=0.0.0.0 --port=80\"\n```\n\n---\n\nSteps to Implement\n\n1. Install Octane in Your Laravel Application\n\nRun the following commands:\n\n```bash\ncomposer require laravel/octane  \nphp artisan octane:install  \nphp artisan vendor:publish --tag=octane-config\n```\n\n2. Update Your Dockerfile\n\nConfigure Octane as the default PHP server:\n\n```dockerfile\n# Set Octane as the default PHP command\nENV SUPERVISOR_PHP_COMMAND=\"/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=swoole --host=0.0.0.0 --port=80\"\n```\n\n3. Deploy the Setup\n\nBuild and start your Docker containers:\n\n```bash\ndocker-compose up --build\n```\n\nBy following this approach, your Laravel application will leverage the performance benefits of Octane with Swoole\n\n---\n\nBuy Me a Coffee\n\nhttps://www.buymeacoffee.com/islamsamy\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fislamsamy214%2Fdockerize-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fislamsamy214%2Fdockerize-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fislamsamy214%2Fdockerize-laravel/lists"}