{"id":15026249,"url":"https://github.com/nazariy/phalcon-nest","last_synced_at":"2026-03-15T19:39:09.184Z","repository":{"id":136152039,"uuid":"454204450","full_name":"Nazariy/phalcon-nest","owner":"Nazariy","description":"Docker compose to run LAMP stack for Phalcon3, Phalcon4 and Phalcon5","archived":false,"fork":false,"pushed_at":"2022-02-01T01:45:24.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-19T19:52:01.969Z","etag":null,"topics":["docker","docker-compose","lamp-server","lamp-stack","phalcon","phalcon-devtools","phalcon3","phalcon4","phalcon5","php73","php74","php80"],"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/Nazariy.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":"2022-01-31T23:30:34.000Z","updated_at":"2022-02-01T10:50:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c01aec2-015a-46e2-bee8-ba5ead4c46ae","html_url":"https://github.com/Nazariy/phalcon-nest","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/Nazariy%2Fphalcon-nest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazariy%2Fphalcon-nest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazariy%2Fphalcon-nest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazariy%2Fphalcon-nest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nazariy","download_url":"https://codeload.github.com/Nazariy/phalcon-nest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243327062,"owners_count":20273597,"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","lamp-server","lamp-stack","phalcon","phalcon-devtools","phalcon3","phalcon4","phalcon5","php73","php74","php80"],"created_at":"2024-09-24T20:04:08.757Z","updated_at":"2025-12-24T19:07:44.768Z","avatar_url":"https://github.com/Nazariy.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phalcon Nest\nThis package helps to launch and debug Phalcon [**LAMP**](https://en.wikipedia.org/wiki/LAMP_(software_bundle)) project under different versions\n\n**Preconfigured Services:**\n- MySQL 8\n- Apache2 + Phalcon3 + php7.3 + DevTools\n- Apache2 + Phalcon4 + php7.4 + DevTools\n- Apache2 + Phalcon5 + php8.0\n\nEach service configured with support of following libraries:\n- [Composer](https://getcomposer.org/)\n- [NewRelic](https://newrelic.com/)\n- [xDebug](https://xdebug.org/)\n- JSON, [DOM](https://www.php.net/manual/en/book.dom.php), [Tidy](https://www.php.net/manual/en/book.tidy.php), [Yaml](https://www.php.net/manual/en/book.yaml.php)\n- Caching: [APCu](https://www.php.net/manual/en/book.apcu.php), Redis\n- Database: [PDO](https://www.php.net/manual/en/book.pdo.php) with MySQL and SQLite support\n- Image Processing: [ImageMagick](https://www.php.net/manual/en/book.imagick.php), [GD](https://www.php.net/manual/en/book.image.php), Exif\n- [BCMath](https://www.php.net/manual/en/intro.bc.php \"Arbitrary Precision Mathematics\") and [GMP](https://www.php.net/manual/en/book.gmp.php \"GNU Multiple Precision\")\n- [Curl](https://www.php.net/manual/en/book.curl.php)\n- i18n support: [mbstring](https://www.php.net/manual/en/book.mbstring.php), [gettext](https://www.php.net/manual/en/book.gettext.php)\n- [Zip](https://www.php.net/manual/en/book.zip.php)\n\n## Setting up your project\n\n### Option 1 \nCreate a new git project\n```shell\ngit clone https://github.com/nazariy/phalcon-nest.git\n```\n### Option 2 \nAdd to existing project under `/docker/` directory\n```shell\n git submodule add https://github.com/nazariy/phalcon-nest.git docker\n```\n\n## Configuration\nUpdate your `.env` file where `docker-compose.yml` is located\n```dotenv\n# Docker defaults\nCOMPOSE_PROJECT_NAME=nest\nCOMPOSE_PROJECT_WORKING_DIR=/home\n# MySQL\nMYSQL_ROOT_PASSWORD=root\nMYSQL_DATABASE=nest\nMYSQL_USER=phalcon\nMYSQL_PASSWORD=phalcon\nMYSQL_HOSTNAME=172.50.50.8\nMYSQL_PORT=3306\n# Apache defaults\nAPACHE_DOCUMENT_ROOT=/home\nAPACHE_PUBLIC_DOCUMENT_ROOT=/home/public\n```\n\u003e Note: mysql host is not accessible via `localhost` for that reason we are using IP address from our subnet\n### NewRelic\nThis step is optional, but it's always good to have some insights on your application performance and issues\n\n\u003e Our PHP agent auto-instruments your code so you can start monitoring applications. \n\u003e You can use our guided installation for an automated install, or follow the instructions in this document to complete a basic PHP agent installation. \n\u003e Either way, you need a New Relic account. (It's free, forever.)\n\nUpdate your `php.ini` and set your license key which can be obtained for [free](https://docs.newrelic.com/docs/apm/agents/php-agent/installation/php-agent-installation-overview/)\n```ini\n[newrelic]\nnewrelic.license = \"YOUR_SHINY_LICENSE\"\nnewrelic.logfile = \"/var/log/newrelic/php_agent.log\"\nnewrelic.appname = \"Phalcon Application\"\nnewrelic.daemon.logfile = \"/var/log/newrelic/newrelic-daemon.log\"\nnewrelic.daemon.app_connect_timeout = 15s\nnewrelic.daemon.start_timeout = 5s\n```\n### xDebug\nHere is a minimum configuration for PHPStorm, add this lines to your `php.ini` file, accessed via port `9003`\n```ini\n[xdebug]\nxdebug.mode                 = debug,develop\nxdebug.idekey               = \"PHPSTORM\"\nxdebug.start_with_request   = yes\nxdebug.client_host          = host.docker.internal\nxdebug.cli_color            = 1\n```\n\n## Starting container\n\n\u003e By default, when accessing `https://localhost` you would see a test page with `phpinfo()` output\n\n### Phalcon3 (v3.4.5)\n```shell\ndocker compose -f docker-compose.yml up -d phalcon3\n```\n### Phalcon4 (v4.1.3)\n```shell\ndocker compose -f docker-compose.yml up -d phalcon4\n```\n### Phalcon5 (v5.0.0beta2) \n```shell\ndocker compose -f docker-compose.yml up -d phalcon5\n```\n\u003e Please note that DevTools are not compatible with the latest version of Phalcon5\n\n## Troubleshooting\nTime to time things can go wrong depending on your current operating system and other factors.\n\nHere are few issues I came across while playing with containers\n#### failed to solve rpc error code\n\u003e example error code:\n\u003e ```log\n\u003e failed to solve rpc error code = unknown desc = failed to solve with frontend dockerfile.v0\n\u003e ```\n\u003e solution: Disable `buildkit` \n\u003e \n\u003e [stackoverflow](https://stackoverflow.com/questions/64221861/an-error-failed-to-solve-with-frontend-dockerfile-v0)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazariy%2Fphalcon-nest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnazariy%2Fphalcon-nest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazariy%2Fphalcon-nest/lists"}