{"id":26881983,"url":"https://github.com/tamtocode/laravel_docker_compose","last_synced_at":"2025-03-31T15:59:06.532Z","repository":{"id":164269883,"uuid":"639703285","full_name":"tamtocode/laravel_docker_compose","owner":"tamtocode","description":"Set Up Laravel with Docker Compose","archived":false,"fork":false,"pushed_at":"2023-07-24T04:14:31.000Z","size":11796,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T05:34:56.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/tamtocode.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}},"created_at":"2023-05-12T03:24:17.000Z","updated_at":"2023-07-24T04:14:41.000Z","dependencies_parsed_at":"2023-12-12T07:39:56.220Z","dependency_job_id":null,"html_url":"https://github.com/tamtocode/laravel_docker_compose","commit_stats":null,"previous_names":["trngtam10d/laravel_docker_compose","tamtocode/laravel_docker_compose"],"tags_count":0,"template":false,"template_full_name":"ucan-lab/docker-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamtocode%2Flaravel_docker_compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamtocode%2Flaravel_docker_compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamtocode%2Flaravel_docker_compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamtocode%2Flaravel_docker_compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tamtocode","download_url":"https://codeload.github.com/tamtocode/laravel_docker_compose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246493479,"owners_count":20786569,"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":[],"created_at":"2025-03-31T15:59:05.853Z","updated_at":"2025-03-31T15:59:06.525Z","avatar_url":"https://github.com/tamtocode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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.yml/badge.svg\" alt=\"Test laravel-create-project.yml\"\u003e\n    \u003cimg src=\"https://github.com/ucan-lab/docker-laravel/actions/workflows/laravel-git-clone.yml/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. Compatible with Windows(WSL2), macOS(M1) and Linux.\n\n## Usage\n\n### Laravel install\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$ 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### Laravel setup\nhttps://blog.desdelinux.net/vi/Makefile-l%C3%A0-g%C3%AC-v%C3%A0-n%C3%B3-ho%E1%BA%A1t-%C4%91%E1%BB%99ng-nh%C6%B0-th%E1%BA%BF-n%C3%A0o-trong-linux/\n1. Git clone \u0026 change directory\n2. Execute the following command\n\n```bash\n$ sudo apt install make\n$ make install\n```\n\nhttp://localhost\n\n## Tips\n\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.1-fpm-bullseye\n  - [composer](https://hub.docker.com/_/composer):2.2\n\n### web container\n\n- Base image\n  - [nginx](https://hub.docker.com/_/nginx):1.22\n\n### db container\n\n- Base image\n  - [mysql/mysql-server](https://hub.docker.com/r/mysql/mysql-server):8.0\n\n### mailhog container\n\n- Base image\n  - [mailhog/mailhog](https://hub.docker.com/r/mailhog/mailhog)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamtocode%2Flaravel_docker_compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftamtocode%2Flaravel_docker_compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamtocode%2Flaravel_docker_compose/lists"}