{"id":15026998,"url":"https://github.com/refactorian/laravel-docker","last_synced_at":"2025-04-24T00:22:56.773Z","repository":{"id":154173703,"uuid":"629493032","full_name":"refactorian/laravel-docker","owner":"refactorian","description":"Laravel Docker Template - Laravel v12.x, PHP v8.4.x, MySQL v8.1.x, phpMyAdmin v5.x, Mailpit v1.x","archived":false,"fork":false,"pushed_at":"2025-04-17T18:46:32.000Z","size":743,"stargazers_count":330,"open_issues_count":0,"forks_count":187,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-18T08:51:11.992Z","etag":null,"topics":["docker","docker-compose","docker-nginx","laravel","laravel-docker","laravel-docker-compose","laravel11","laravel12","mailpit","mariadb","mysql","nginx","npm","php","php8","phpmyadmin","postgresql","vite"],"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/refactorian.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}},"created_at":"2023-04-18T12:29:27.000Z","updated_at":"2025-04-17T18:46:30.000Z","dependencies_parsed_at":"2024-03-11T14:44:17.841Z","dependency_job_id":"39101565-f46b-475d-9fca-688c15b84bbf","html_url":"https://github.com/refactorian/laravel-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refactorian%2Flaravel-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refactorian%2Flaravel-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refactorian%2Flaravel-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refactorian%2Flaravel-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/refactorian","download_url":"https://codeload.github.com/refactorian/laravel-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250536258,"owners_count":21446701,"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":["docker","docker-compose","docker-nginx","laravel","laravel-docker","laravel-docker-compose","laravel11","laravel12","mailpit","mariadb","mysql","nginx","npm","php","php8","phpmyadmin","postgresql","vite"],"created_at":"2024-09-24T20:05:34.887Z","updated_at":"2025-04-24T00:22:56.764Z","avatar_url":"https://github.com/refactorian.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://laravel.com\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg\" width=\"400\" alt=\"Laravel Logo\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n# Laravel Docker Starter Kit\n- Laravel v12.x\n- PHP v8.4.x\n- MySQL v8.1.x (default)\n- MariaDB v10.11.x\n- PostgreSQL v16.x\n- pgAdmin v4.x\n- phpMyAdmin v5.x\n- Mailpit v1.x\n- Node.js v18.x\n- NPM v10.x\n- Yarn v1.x\n- Vite v5.x\n- Rector v1.x\n- Redis v7.2.x\n\n# Requirements\n- Stable version of [Docker](https://docs.docker.com/engine/install/)\n- Compatible version of [Docker Compose](https://docs.docker.com/compose/install/#install-compose)\n\n# How To Deploy\n\n### For first time only !\n- `git clone https://github.com/refactorian/laravel-docker.git`\n- `cd laravel-docker`\n- `docker compose up -d --build`\n- `docker compose exec php bash`\n- `composer setup`\n\n### From the second time onwards\n- `docker compose up -d`\n\n# Notes\n\n### Laravel Versions\n- [Laravel 12.x](https://github.com/refactorian/laravel-docker/tree/main)\n- [Laravel 11.x](https://github.com/refactorian/laravel-docker/tree/laravel_11x)\n- [Laravel 10.x](https://github.com/refactorian/laravel-docker/tree/laravel_10x)\n\n### Laravel App\n- URL: http://localhost\n\n### Mailpit\n- URL: http://localhost:8025\n\n### phpMyAdmin\n- URL: http://localhost:8080\n- Server: `db`\n- Username: `refactorian`\n- Password: `refactorian`\n- Database: `refactorian`\n\n### Adminer\n- URL: http://localhost:9090\n- Server: `db`\n- Username: `refactorian`\n- Password: `refactorian`\n- Database: `refactorian`\n\n### Basic docker compose commands\n- Build or rebuild services\n    - `docker compose build`\n- Create and start containers\n    - `docker compose up -d`\n- Stop and remove containers, networks\n    - `docker compose down`\n- Stop all services\n    - `docker compose stop`\n- Restart service containers\n    - `docker compose restart`\n- Run a command inside a container\n    - `docker compose exec [container] [command]`\n\n### Useful Laravel Commands\n- Display basic information about your application\n    - `php artisan about`\n- Remove the configuration cache file\n    - `php artisan config:clear`\n- Flush the application cache\n    - `php artisan cache:clear`\n- Clear all cached events and listeners\n    - `php artisan event:clear`\n- Delete all of the jobs from the specified queue\n    - `php artisan queue:clear`\n- Remove the route cache file\n    - `php artisan route:clear`\n- Clear all compiled view files\n    - `php artisan view:clear`\n- Remove the compiled class file\n    - `php artisan clear-compiled`\n- Remove the cached bootstrap files\n    - `php artisan optimize:clear`\n- Delete the cached mutex files created by scheduler\n    - `php artisan schedule:clear-cache`\n- Flush expired password reset tokens\n    - `php artisan auth:clear-resets`\n\n### Laravel Pint (Code Style Fixer | PHP-CS-Fixer)\n- Format all files\n    - `vendor/bin/pint`\n- Format specific files or directories\n    - `vendor/bin/pint app/Models`\n    - `vendor/bin/pint app/Models/User.php`\n- Format all files with preview\n    - `vendor/bin/pint -v`\n- Format uncommitted changes according to Git\n    - `vendor/bin/pint --dirty`\n- Inspect all files\n  - `vendor/bin/pint --test`\n\n### Rector\n- Dry Run\n    - `vendor/bin/rector process --dry-run`\n- Process\n    - `vendor/bin/rector process`\n\n# Alternatives\n- [Laravel Sail](https://laravel.com/docs/master/sail)\n- [Laravel Herd](https://herd.laravel.com/)\n- [Laradock](https://laradock.io/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefactorian%2Flaravel-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefactorian%2Flaravel-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefactorian%2Flaravel-docker/lists"}