{"id":20886556,"url":"https://github.com/hanieas/docker-laravel","last_synced_at":"2025-05-12T19:32:26.542Z","repository":{"id":58518783,"uuid":"424127818","full_name":"hanieas/Docker-Laravel","owner":"hanieas","description":"Setting Up Laravel Local Environment with Docker","archived":false,"fork":false,"pushed_at":"2023-12-01T10:56:28.000Z","size":12552,"stargazers_count":104,"open_issues_count":2,"forks_count":62,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T10:14:32.273Z","etag":null,"topics":["docker","docker-compose","laravel","mysql","nginx","phpmyadmin"],"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/hanieas.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":"2021-11-03T07:23:56.000Z","updated_at":"2025-02-13T18:37:13.000Z","dependencies_parsed_at":"2024-11-18T08:17:27.928Z","dependency_job_id":"33864523-dff5-4606-b143-2653bde1c67a","html_url":"https://github.com/hanieas/Docker-Laravel","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanieas%2FDocker-Laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanieas%2FDocker-Laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanieas%2FDocker-Laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanieas%2FDocker-Laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanieas","download_url":"https://codeload.github.com/hanieas/Docker-Laravel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253808337,"owners_count":21967527,"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","laravel","mysql","nginx","phpmyadmin"],"created_at":"2024-11-18T08:17:20.194Z","updated_at":"2025-05-12T19:32:26.517Z","avatar_url":"https://github.com/hanieas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install and Set Up Laravel with Docker Compose\n\nSetting up Laravel in the local environment with Docker using the LEMP stack that includes: Nginx, MySQL, PHP, and phpMyAdmin.\n\n## Why use Docker for Development\n\n- [x] Consistent development environment for the entire team.\n- [x] You don't need to install a bunch of language environments on your system.\n- [x] You can use different versions of the same programming language.\n- [x] Deployment is easy\n\n## How to Install and Run the Project\n\n1. ``` git clone git@github.com:hanieas/Docker-Laravel.git ```\n2. ``` docker-compose exec app composer install ```\n3. Copy ```.env.example``` to ```.env```\n4. ```docker-compose build```\n5. ```docker compose up -d```\n6. You can see the project on ```127.0.0.1:8080```\n\n## How to use MySQL as a database\n\n1. Uncomment the MySQL configuration inside the ```docker-compose.yml``` including: ```db``` and ```phpMyAdmin```\n2. Copy ```.env.example``` to ```.env```\n3. Change ```DB_CONNECTION``` to ```mysql```\n4. Change ```DB_PORT``` to ```3306```\n5. Open the ```phpMyAdmin``` on ```127.0.0.1:3400```\n\n## How to use PostgreSQL as a database\n\n1. Uncomment the PostgreSQL configuration inside the ```docker-compose.yml``` including: ```db``` and ```pgamdin```\n2. Copy ```.env.example``` to ```.env```\n3. Change ```DB_CONNECTION``` to ```pgsql```\n4. Change ```DB_PORT``` to ```5432```\n5. Open the ```pgAdmin``` on ```127.0.0.1:5050```\n\n## How to run Laravel Commands with Docker Compose\n\n1. ```cd src```\n2. ```docker-compose exec app php artisan {your command}``` \n\n## Medium\n\nhttps://medium.com/@hanieasemi/setting-up-a-laravel-local-environment-with-docker-7541ae170daf\n\n## YouTube \n\nhttps://www.youtube.com/watch?v=6ANYowpB910\n\nhttps://www.youtube.com/watch?v=gZfCAIGsz_o\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanieas%2Fdocker-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanieas%2Fdocker-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanieas%2Fdocker-laravel/lists"}