{"id":25823352,"url":"https://github.com/saada/docker-lumen","last_synced_at":"2025-04-07T12:01:49.037Z","repository":{"id":30654874,"uuid":"34210524","full_name":"saada/docker-lumen","owner":"saada","description":"Docker Compose setup for quickly writing apps with the Lumen Framework","archived":false,"fork":false,"pushed_at":"2023-02-07T17:11:13.000Z","size":840,"stargazers_count":268,"open_issues_count":4,"forks_count":104,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-31T11:01:33.307Z","etag":null,"topics":["docker","docker-setup","lumen"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/saada.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}},"created_at":"2015-04-19T14:47:05.000Z","updated_at":"2025-03-13T10:17:35.000Z","dependencies_parsed_at":"2023-02-19T20:15:30.182Z","dependency_job_id":null,"html_url":"https://github.com/saada/docker-lumen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fdocker-lumen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fdocker-lumen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fdocker-lumen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fdocker-lumen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saada","download_url":"https://codeload.github.com/saada/docker-lumen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648874,"owners_count":20972944,"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-setup","lumen"],"created_at":"2025-02-28T11:53:34.108Z","updated_at":"2025-04-07T12:01:49.015Z","avatar_url":"https://github.com/saada.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker + Lumen with Nginx, MySQL, and Memcached\n\n![image](Lumen_splash.png)\n\n## Why?\n\nSetting up an entire Lumen stack can be time consuming. This repo is a quick way to write apps in PHP using Lumen from an any Docker client. It uses docker-compose to setup the application services, databases, cache, etc...\n\n## Clone this repo\n\n```bash\ngit clone https://github.com/saada/docker-lumen.git\ncd docker-lumen\n```\n\n## Create Lumen App\n\nnow, create the app in the `images/php` directory named `app`\n\n```bash\ndocker run --rm -it -v $(pwd)/images/php:/app $(docker build -q .) composer create-project --prefer-dist laravel/lumen ./app\n```\n\n### Configuration\n\nThere are two configurations using `.env` files. One `.env` file for docker-compose.yaml and another for the php application.\n\n```sh\n# copy both files and make changes to them if needed\ncp .env.docker.example .env\ncp .env.app.example images/php/app/.env\n```\n\nTo change configuration values, look in the `docker-compose.yml` file and change the `php` container's environment variables. These directly correlate to the Lumen environment variables.\n\n## Docker Setup\n\n### [Docker for Mac](https://docs.docker.com/docker-for-mac/)\n\n### [Docker for Windows](https://docs.docker.com/docker-for-windows/)\n\n### [Docker for Linux](https://docs.docker.com/engine/installation/linux/)\n\n### Build \u0026 Run\n\n```bash\ndocker-compose up --build -d\n```\n\nNavigate to [http://localhost:80](http://localhost:80) and you should see something like this\n![image](Lumen_browser.png)\n\nSuccess! You can now start developing your Lumen app on your host machine and you should see your changes on refresh! Classic PHP development cycle. A good place to start is `images/php/app/routes/web.php`.\n\nFeel free to configure the default port 80 in `docker-compose.yml` to whatever you like.\n\n### Stop Everything\n\n```bash\ndocker-compose down\n```\n\n## Running Artisan commands\n\n```sh\ndocker-compose exec php sh\n# inside the container\ncd ..\nphp artisan migrate\nphp artisan cache:clear\n```\n\n## Contribute\n\nSubmit a Pull Request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaada%2Fdocker-lumen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaada%2Fdocker-lumen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaada%2Fdocker-lumen/lists"}