{"id":14975861,"url":"https://github.com/mnr73/laravel-docker-compose","last_synced_at":"2025-10-27T14:31:22.173Z","repository":{"id":231174454,"uuid":"781127385","full_name":"mnr73/laravel-docker-compose","owner":"mnr73","description":"run latest Laravel version with docker compose","archived":false,"fork":false,"pushed_at":"2024-06-22T09:19:45.000Z","size":115,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-28T21:03:55.212Z","etag":null,"topics":["docker","dockercompose","laravel"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/mnr73.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,"publiccode":null,"codemeta":null}},"created_at":"2024-04-02T19:53:24.000Z","updated_at":"2024-07-09T09:51:03.000Z","dependencies_parsed_at":"2024-06-22T18:01:59.452Z","dependency_job_id":"3afe8e0c-4bb9-4945-b02b-61aabbf128fb","html_url":"https://github.com/mnr73/laravel-docker-compose","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"8d36f4370f83cc608562c139121822a0b34e4405"},"previous_names":["mnr73/laravel-docker-compose"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnr73%2Flaravel-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnr73%2Flaravel-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnr73%2Flaravel-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnr73%2Flaravel-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnr73","download_url":"https://codeload.github.com/mnr73/laravel-docker-compose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219861084,"owners_count":16556007,"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","dockercompose","laravel"],"created_at":"2024-09-24T13:52:46.776Z","updated_at":"2025-10-27T14:31:21.813Z","avatar_url":"https://github.com/mnr73.png","language":"PHP","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\" height=\"100\" alt=\"Laravel Logo\"\u003e\u003c/a\u003e\u003cimg src=\"https://cdn.worldvectorlogo.com/logos/docker.svg\" height=\"100\" alt=\"Laravel Logo\"\u003e\u003c/p\u003e\n\n## About this Laravel fresh repo\n\nthis laravel repo provide simple docker files and docker compose to run Laravel for develop and production purpose.\nthis repo is contain three docker compose files.\n\n- docker-compose-common.yml : the base of docker compose files\n- docker-compose-prd.yml : docker compose file for production\n- docker-compose.yml : docker compose file for development in local\n\nto work with this docker compose files you need docker base knowledge.\n\ndocker files placed in /mnr_docker directory.\n\nin additional add [Laravel ide helper](https://github.com/barryvdh/laravel-ide-helper) package and put some setting for auto generate files. for auto generate files you need this [run on save](https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave) extension for vsCode.\n\n## How to use\n\n- step 1: clone repo\n- step 2 (optional): you can remove /.git directory and initial repo again\n- step 3: cp .env.example to .env\n- step 4: the default database in .env file is sqlite if you want continue to use taht you can comment or remove mysql and phpMyAdmin services in docker compose files. or change DB_CONNECTION value to mysql in .env file. change env file like below lines to use mysql. if you want user other databases you should change docker compose files.\n\n```\nDB_CONNECTION=mysql\nDB_HOST=mysql\nDB_PORT=3306\nDB_DATABASE=laravel\nDB_USERNAME=laravel\nDB_PASSWORD=password\n```\n\n- step 5: change other env variable if you need and run `docker compose up -d`\n- step 6: run `docker compose exec -it -u 1000 laravel composer install`\n- step 7: run `docker compose exec -it -u 1000 laravel php artisan key:generate`\n- step 8: run `docker compose exec -it -u 1000 laravel php artisan migrate`\n- step 9: open [localhost](http://localhost) to see laravel welcome page\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnr73%2Flaravel-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnr73%2Flaravel-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnr73%2Flaravel-docker-compose/lists"}