{"id":18627205,"url":"https://github.com/markshust/docker-lumen","last_synced_at":"2025-11-04T01:30:32.459Z","repository":{"id":142878571,"uuid":"139461895","full_name":"markshust/docker-lumen","owner":"markshust","description":"Mark Shust's Docker Configuration for Lumen","archived":false,"fork":false,"pushed_at":"2018-07-13T15:13:51.000Z","size":5,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T06:26:37.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/markshust.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-07-02T15:34:50.000Z","updated_at":"2020-07-05T16:54:29.000Z","dependencies_parsed_at":"2023-06-15T08:15:15.832Z","dependency_job_id":null,"html_url":"https://github.com/markshust/docker-lumen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fdocker-lumen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fdocker-lumen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fdocker-lumen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fdocker-lumen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markshust","download_url":"https://codeload.github.com/markshust/docker-lumen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239425311,"owners_count":19636346,"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":"2024-11-07T04:41:09.157Z","updated_at":"2025-11-04T01:30:32.403Z","avatar_url":"https://github.com/markshust.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mark Shust's Docker Configuration for Lumen\n\n## Docker Hub\n\nView Dockerfiles:\n\n- [markoshust/lumen-php-apache (Docker Hub)](https://hub.docker.com/r/markoshust/lumen-php-apache/)\n\t- 7.2\n\t\t- [`latest`, `7.2`, `7.2-1`](https://github.com/markoshust/docker-lumen/tree/master/images/php-apache/7.2)\n\t\t- [`7.2-0`](https://github.com/markoshust/docker-magento/tree/1.0.0/images/php-apache/7.2)\n\n## Usage\n\nThis configuration is intended to be used as a Docker-based development environment for Lumen.\n\nFolders:\n\n- `images`: Docker images\n- `compose`: sample setups with Docker Compose\n\n## Setup a New Lumen Project\n\n1. Setup a new project sekeleton from this repository:\n\n```\nmkdir myapp \u0026\u0026 cd $_\ngit init\ngit remote add origin git@github.com:markoshust/docker-lumen.git\ngit fetch origin\ngit checkout origin/master -- compose\nmv compose/* .\nrm -rf compose .git\ngit init\n```\n\n2. Setup your ip loopback for proper IP resolution with Docker: `./bin/initloopback`\n\n3. Add an entry to `/etc/hosts` with your custom domain: `10.254.254.254 myapp.test` (assuming the domain  you want to setup is `myapp.test`). Be sure to use a `.test` tld, as `.localhost` and `.dev` will present issues with domain resolution.\n\n4. Start your Docker containers with: `./bin/start`.\n\n5. Download Lumen within the running Docker container with composer: `./bin/composer create-project --prefer-dist laravel/lumen .`\n\n6. You may now access your site at `http://myapp.test:8000` (or whatever domain you setup).\n\n## Existing Lumen Project Setup\n\nYour source code should go in the `src` folder, and you can then kick your project off with `./bin/start`.\n\n## Custom CLI Commands\n\n- `./bin/bash`: Drop into the bash prompt of your Docker container. The `phpfpm` container should be mainly used to access the filesystem within Docker.\n- `./bin/cli`: Run any CLI command without going into the bash prompt. Ex. `./bin/cli ls`\n- `./bin/composer`: Run the composer binary. Ex. `./bin/composer install`\n- `./bin/initloopback`: Setup your ip loopback for proper Docker ip resolution.\n- `./bin/start`: Start the Docker Compose process and your app. Ctrl+C to stop the process.\n\n## Misc Info\n\n### Database\n\n- The hostname of each service is the name of the service within the `docker-compose.yml` file. So for example, MySQL's hostname is `db` (not `localhost`) when accessing it from a Docker container.\n\n### Composer Authentication\n\nThe `~/.composer` directory is bind-mounted to the container as a volume, so you can setup your `~/.composer/auth.json` file on the host with the following contents, like so:\n\n```\n{\n    \"http-basic\": {\n        \"your-repo.com\": {\n            \"username\": \"YOUR_USERNAME\",\n            \"password\": \"YOUR_PASSWORD\"\n        }\n    }\n}\n```\n\n...then, your authentication credentials will also work within the running Docker container.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkshust%2Fdocker-lumen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkshust%2Fdocker-lumen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkshust%2Fdocker-lumen/lists"}