{"id":20332615,"url":"https://github.com/socialengine/docker-php-apache","last_synced_at":"2025-04-11T21:33:08.983Z","repository":{"id":35079693,"uuid":"39233962","full_name":"SocialEngine/docker-php-apache","owner":"SocialEngine","description":"A Docker image with PHP, Apache (running in Foreground) serving from public/ folder.","archived":false,"fork":false,"pushed_at":"2019-09-18T12:34:07.000Z","size":23,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-25T17:46:50.310Z","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/SocialEngine.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-07-17T03:56:06.000Z","updated_at":"2025-02-06T04:16:23.000Z","dependencies_parsed_at":"2022-09-05T18:50:26.859Z","dependency_job_id":null,"html_url":"https://github.com/SocialEngine/docker-php-apache","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/SocialEngine%2Fdocker-php-apache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialEngine%2Fdocker-php-apache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialEngine%2Fdocker-php-apache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialEngine%2Fdocker-php-apache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SocialEngine","download_url":"https://codeload.github.com/SocialEngine/docker-php-apache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248483379,"owners_count":21111438,"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-14T20:27:31.185Z","updated_at":"2025-04-11T21:33:08.955Z","avatar_url":"https://github.com/SocialEngine.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![docker pull socialengine/apache-php][image shield]][docker hub]\n\nThis is a Docker image with PHP, Composer, and Apache (running in \nForeground) serving from public/ folder. Ideal for Laravel, Lumen and other \nmodern php apps.\n\n## Supported tags and `Dockerfile` links\n\n-\t[`7.2` (*7.2/Dockerfile*)][7.2]\n-\t[`7.1` (*7.1/Dockerfile*)][7.1]\n-\t[`7.0` (*7.0/Dockerfile*)][7.0]\n-\t[`5.6` (*5.6/Dockerfile*)][5.6]\n-\t[`5.5` (*5.5/Dockerfile*)][5.5]\n\n## Included on top of [base][base image] PHP image\n\n- mbstring \n- mcrypt \n- zip\n- composer (avaiable globally)\n- xdebug (enabled with `-e PHP_XDEBUG=1`)\n\n# App Setup\n\nThis docker image is built for `index.php` file being in the `public/` \ndirectory. `mod_rewrite` is enabled.\n\nAt a minimum, you will want this in your `Dockerfile`:\n\n```Dockerfile\nFROM socialengine/php-apache:5.6\n\nCOPY . /app\n\nRUN composer install\n```\n\nThen you can build \u0026 run your app in the docker container.\n\nIf you want to enable xdebug:\n\n```bash\n$ docker run -e PHP_XDEBUG=1 [your image]\n```\n\nSee [example](example/) for further info. \n\n## Check Links\n\nA lot of times, your depedant services aren't ready to go as fast as your app\n\nFor that, there's a `check_docker_link` command that will check TCP to make \nsure its up\n\n```\nUsage: check_docker_link \u003cname\u003e \u003caddr\u003e \u003cport\u003e\n\n# Example\nif check_docker_link \"mysql\" \"${DB_1_PORT_3306_TCP_ADDR}\" \"${DB_1_PORT_3306_TCP_PORT}\"; then\n    export MYSQL_HOST=${DB_1_PORT_3306_TCP_ADDR}\n    export MYSQL_PORT=${DB_1_PORT_3306_TCP_PORT}\nfi\n```\n\n[base image]: https://github.com/docker-library/php\n[5.5]: https://github.com/SocialEngine/docker-php-apache/blob/master/versions/5.5/Dockerfile\n[5.6]: https://github.com/SocialEngine/docker-php-apache/blob/master/versions/5.6/Dockerfile\n[7.0]: https://github.com/SocialEngine/docker-php-apache/blob/master/versions/7.0/Dockerfile\n[7.1]: https://github.com/SocialEngine/docker-php-apache/blob/master/versions/7.1/Dockerfile\n[image shield]: https://img.shields.io/badge/dockerhub-socialengine%2Fphp--apache-blue.svg\n[docker hub]: https://registry.hub.docker.com/u/socialengine/php-apache/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialengine%2Fdocker-php-apache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocialengine%2Fdocker-php-apache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialengine%2Fdocker-php-apache/lists"}