{"id":19381450,"url":"https://github.com/papposilene/dockerized-laravel","last_synced_at":"2026-06-08T20:32:27.933Z","repository":{"id":81926314,"uuid":"334970650","full_name":"papposilene/dockerized-laravel","owner":"papposilene","description":"A docker-compose workflow for local Laravel development with PHP, Nginx, MySQL, PhpMyAdmin, Mailhog, Redis, NPM, Composer.","archived":false,"fork":false,"pushed_at":"2021-04-26T17:31:58.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T16:54:01.305Z","etag":null,"topics":["composer-docker","docker-compose","mailhog-docker","mysql-docker","nginx-docker","npm-docker","php-docker","phpmyadmin-docker","redis-docker"],"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/papposilene.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":"2021-02-01T14:10:31.000Z","updated_at":"2021-04-26T17:32:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3fbceea-db91-4c29-a9a5-57f943da5302","html_url":"https://github.com/papposilene/dockerized-laravel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/papposilene/dockerized-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papposilene%2Fdockerized-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papposilene%2Fdockerized-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papposilene%2Fdockerized-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papposilene%2Fdockerized-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/papposilene","download_url":"https://codeload.github.com/papposilene/dockerized-laravel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papposilene%2Fdockerized-laravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34080027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["composer-docker","docker-compose","mailhog-docker","mysql-docker","nginx-docker","npm-docker","php-docker","phpmyadmin-docker","redis-docker"],"created_at":"2024-11-10T09:17:12.981Z","updated_at":"2026-06-08T20:32:27.906Z","avatar_url":"https://github.com/papposilene.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dockerized-laravel\n\nA pretty simplified Docker Compose workflow that sets up a LEMP network of containers for local Laravel development. You can view the full article that inspired this repo [here](https://dev.to/aschmelyun/the-beauty-of-docker-for-local-laravel-development-13c0).\n\n\n## Usage\n\nTo get started, make sure you have [Docker installed](https://docs.docker.com/docker-for-mac/install/) on your system, and then clone this repository.\n\nNext, navigate in your terminal to the directory you cloned this, and spin up the containers for the web server by running `docker-compose build \u0026\u0026 docker-compose up -d`.\n\nAfter that completes, run `docker-compose run --rm composer create-project --prefer-dist laravel/laravel .` or clone a existent Laravel project in the root folder.\n\nBringing up the Docker Compose network with `site` instead of just using `up`, ensures that only our site's containers are brought up at the start, instead of all of the command containers as well. The following are built for our web server, with their exposed ports detailed:\n\n- **nginx** - `:80`\n- **mysql** - `:3306`\n- **phpmyadmin** - `:8024`\n- **php** - `:9000`\n- **redis** - `:6379`\n- **mailhog** - `:8025` \n\nThree additional containers are included that handle Composer, NPM, and Artisan commands *without* having to have these platforms installed on your local computer. Use the following command examples from your project root, modifying them to fit your particular use case.\n\n- `docker-compose run --rm composer update`\n- `docker-compose run --rm npm run dev`\n- `docker-compose run --rm artisan migrate` or `docker-compose run --rm artisan migrate:fresh --seed`\n\n## phpMyAdmin\n\nTo access to your phpMyAdmin, go to `http://localhost:8024/` and enter those credentials : server `db`, user `homestead` and password `secret` (or anything else you decide in the environnement variables in your `docker-composer.yml` file.\n\n\n## MailHog\n\nThe current version of Laravel (8 as of today) uses MailHog as the default application for testing email sending and general SMTP work during local development. Using the provided Docker Hub image, getting an instance set up and ready is simple and straight-forward. The service is included in the `docker-compose.yml` file, and spins up alongside the webserver and database services.\n\nTo see the dashboard and view any emails coming through the system, visit [localhost:8025](http://localhost:8025) after running `docker-compose up -d site`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapposilene%2Fdockerized-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpapposilene%2Fdockerized-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapposilene%2Fdockerized-laravel/lists"}