{"id":16602269,"url":"https://github.com/ucan-lab/docker-laravel","last_synced_at":"2025-05-14T14:07:37.681Z","repository":{"id":34175305,"uuid":"262374167","full_name":"ucan-lab/docker-laravel","owner":"ucan-lab","description":"🐳 Build a simple laravel development environment with Docker Compose.","archived":false,"fork":false,"pushed_at":"2025-01-22T06:01:40.000Z","size":480,"stargazers_count":1190,"open_issues_count":8,"forks_count":381,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-04-12T13:57:34.133Z","etag":null,"topics":["docker","laravel"],"latest_commit_sha":null,"homepage":"https://dev.to/ucan_lab/how-to-install-and-set-up-laravel-s-local-development-environment-with-docker-compose-5bcf","language":"Makefile","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/ucan-lab.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}},"created_at":"2020-05-08T16:32:45.000Z","updated_at":"2025-04-06T08:09:17.000Z","dependencies_parsed_at":"2024-08-28T08:32:37.119Z","dependency_job_id":"05d74ebb-465f-40ee-8ff3-9997894e43a0","html_url":"https://github.com/ucan-lab/docker-laravel","commit_stats":{"total_commits":131,"total_committers":16,"mean_commits":8.1875,"dds":0.2442748091603053,"last_synced_commit":"23a71e5f298f683a27ee4be9959c7daefc5c0512"},"previous_names":[],"tags_count":25,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucan-lab%2Fdocker-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucan-lab%2Fdocker-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucan-lab%2Fdocker-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucan-lab%2Fdocker-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ucan-lab","download_url":"https://codeload.github.com/ucan-lab/docker-laravel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254159194,"owners_count":22024558,"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","laravel"],"created_at":"2024-10-12T00:21:24.398Z","updated_at":"2025-05-14T14:07:37.660Z","avatar_url":"https://github.com/ucan-lab.png","language":"Makefile","funding_links":[],"categories":["Makefile","Resources"],"sub_categories":["Development Tools"],"readme":"# docker-laravel 🐳\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/35098175/145682384-0f531ede-96e0-44c3-a35e-32494bd9af42.png\" alt=\"docker-laravel\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/ucan-lab/docker-laravel/actions/workflows/laravel-create-project.yaml/badge.svg\" alt=\"Test laravel-create-project.yml\"\u003e\n    \u003cimg src=\"https://github.com/ucan-lab/docker-laravel/actions/workflows/laravel-git-clone.yaml/badge.svg\" alt=\"Test laravel-git-clone.yml\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/ucan-lab/docker-laravel\" alt=\"License\"\u003e\n\u003c/p\u003e\n\n## Introduction\n\nBuild a simple laravel development environment with Docker Compose. Support with Windows(WSL2), macOS(Intel and Apple Silicon) and Linux.\n\n## Usage\n\n### Create an initial Laravel project\n\n1. Click [Use this template](https://github.com/ucan-lab/docker-laravel/generate)\n2. Git clone \u0026 change directory\n3. Execute the following command\n\n```bash\n$ task for-linux-env # Linux environment only\n$ task create-project\n\n# or...\n\n$ make for-linux-env # Linux environment only\n$ make create-project\n\n# or...\n\n$ echo \"UID=$(id -u)\" \u003e\u003e .env # Linux environment only\n$ echo \"GID=$(id -g)\" \u003e\u003e .env # Linux environment only\n\n$ mkdir -p src\n$ docker compose build\n$ docker compose up -d\n$ docker compose exec app composer create-project --prefer-dist laravel/laravel .\n$ docker compose exec app php artisan key:generate\n$ docker compose exec app php artisan storage:link\n$ docker compose exec app chmod -R 777 storage bootstrap/cache\n$ docker compose exec app php artisan migrate\n```\n\nhttp://localhost\n\n### Create an existing Laravel project\n\n1. Git clone \u0026 change directory\n2. Execute the following command\n\n```bash\n$ task for-linux-env # Linux environment only\n$ task install\n\n# or...\n\n$ make for-linux-env # Linux environment only\n$ make install\n\n# or...\n\n$ echo \"UID=$(id -u)\" \u003e\u003e .env # Linux environment only\n$ echo \"GID=$(id -g)\" \u003e\u003e .env # Linux environment only\n\n$ docker compose build\n$ docker compose up -d\n$ docker compose exec app composer install\n$ docker compose exec app cp .env.example .env\n$ docker compose exec app php artisan key:generate\n$ docker compose exec app php artisan storage:link\n$ docker compose exec app chmod -R 777 storage bootstrap/cache\n```\n\nhttp://localhost\n\n## Tips\n\n- Read this [Taskfile](https://github.com/ucan-lab/docker-laravel/blob/main/Taskfile.yml).\n- Read this [Makefile](https://github.com/ucan-lab/docker-laravel/blob/main/Makefile).\n- Read this [Wiki](https://github.com/ucan-lab/docker-laravel/wiki).\n\n## Container structures\n\n```bash\n├── app\n├── web\n└── db\n```\n\n### app container\n\n- Base image\n  - [php](https://hub.docker.com/_/php):8.3-fpm-bullseye\n  - [composer](https://hub.docker.com/_/composer):2.7\n\n### web container\n\n- Base image\n  - [nginx](https://hub.docker.com/_/nginx):1.26\n\n### db container\n\n- Base image\n  - [mysql](https://hub.docker.com/_/mysql):8.4\n\n### mailpit container\n\n- Base image\n  - [axllent/mailpit](https://hub.docker.com/r/axllent/mailpit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucan-lab%2Fdocker-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fucan-lab%2Fdocker-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucan-lab%2Fdocker-laravel/lists"}