{"id":24127473,"url":"https://github.com/giuseppemorelli/docker-devbox-apache-php","last_synced_at":"2026-02-14T10:03:59.916Z","repository":{"id":44830490,"uuid":"132497772","full_name":"giuseppemorelli/docker-devbox-apache-php","owner":"giuseppemorelli","description":"Dockerfile to have a complete setup for Apache + PHP","archived":false,"fork":false,"pushed_at":"2025-02-27T09:30:37.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T17:11:11.682Z","etag":null,"topics":["apache","docker","docker-image","php"],"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/giuseppemorelli.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":"2018-05-07T18:01:31.000Z","updated_at":"2025-02-27T09:30:41.000Z","dependencies_parsed_at":"2024-05-16T03:58:03.824Z","dependency_job_id":"a3824bee-b588-4c46-8c8c-819e8233065a","html_url":"https://github.com/giuseppemorelli/docker-devbox-apache-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/giuseppemorelli/docker-devbox-apache-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppemorelli%2Fdocker-devbox-apache-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppemorelli%2Fdocker-devbox-apache-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppemorelli%2Fdocker-devbox-apache-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppemorelli%2Fdocker-devbox-apache-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giuseppemorelli","download_url":"https://codeload.github.com/giuseppemorelli/docker-devbox-apache-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuseppemorelli%2Fdocker-devbox-apache-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29442335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["apache","docker","docker-image","php"],"created_at":"2025-01-11T17:42:15.972Z","updated_at":"2026-02-14T10:03:59.912Z","avatar_url":"https://github.com/giuseppemorelli.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eDocker Apache + PHP\u003c/h1\u003e\n\n![PHP 5.6](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-5.6-debian.yml/badge.svg)\n![PHP 7.0](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-7.0-debian.yml/badge.svg)\n![PHP 7.1](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-7.1-debian.yml/badge.svg)\n![PHP 7.2](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-7.2-debian.yml/badge.svg)\n![PHP 7.3](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-7.3-debian.yml/badge.svg)\n![PHP 7.4](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-7.4-debian.yml/badge.svg)\n![PHP 8.0](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-8.0-debian.yml/badge.svg)\n![PHP 8.1](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-8.1-debian.yml/badge.svg)\n![PHP 8.2](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-8.2-debian.yml/badge.svg)\n![PHP 8.3](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-8.3-debian.yml/badge.svg)\n![PHP 8.4](https://github.com/giuseppemorelli/docker-devbox-apache-php/actions/workflows/php-8.4-debian.yml/badge.svg)\n\n\nDockerfile to have a development environment for Apache + PHP.\n\n## How to use\n\nYou can run this command in your terminal or use `docker-compose` example file.\n\n```bash\ndocker run -d --name devbox-apache-php -p 80:80 giuseppemorelli/devbox-apache-php:7.4 -v \u003cyour html project full path\u003e:/var/www/html/\n```\n\n## Environment variables\n\n| Variable name         | Description                                                                                                                           | Default Value | Example                  |\n| --------------------- |---------------------------------------------------------------------------------------------------------------------------------------| ------------- | ------------------------ |\n| APACHE_USER_UID       | User ID for Apache User. Insert in most case your computer user ID                                                                    | 33            | 1000                     |\n| APACHE_USER_GID       | Group ID for Apache User. Insert in most case your computer group ID                                                                  | 33            | 1000                     |\n| POSTFIX_myhostname    |                                                                                                                                       | hostname      | project.local            |\n| POSTFIX_mydestination |                                                                                                                                       | localhost     | project.local            |\n| POSTFIX_relayhost     | SMTP Host to 'redirect' mails. Used with mailhog service for development                                                              | ''            | \u003cmailhog-ip\u003e:1025        |\n| XDEBUG_CONFIG         | Add extra xdebug configuration.\u003cbr /\u003eIn most cases we have to add the local computer ip with the same network of the docker container | ''            | remote_host=172.16.244.1 |\n\nSee [docker-devbox](https://github.com/giuseppemorelli/docker-devbox) for more info\n\n## What is inside\n\nOS base system is Debian Stretch\n\n- Apache + mod php\n- All major php library\n- postfix\n- xdebug\n- composer 2\n\nIn each branch you can find a complete list of the software used.\n\n\n\n## Versions\n\nEach subfolder has own version. Main tag is: `giuseppemorelli/devbox-apache-php`, then you can choose the tag version from this list\n\n| Version | Subfolder      | Docker Hub tag                        |\n|---------|----------------|---------------------------------------|\n| PHP 5.6 | php-5.6-debian | giuseppemorelli/devbox-apache-php:5.6 |\n| PHP 7.0 | php-7.0-debian | giuseppemorelli/devbox-apache-php:7.0 |\n| PHP 7.1 | php-7.1-debian | giuseppemorelli/devbox-apache-php:7.1 |\n| PHP 7.2 | php-7.2-debian | giuseppemorelli/devbox-apache-php:7.2 |\n| PHP 7.3 | php-7.3-debian | giuseppemorelli/devbox-apache-php:7.3 |\n| PHP 7.4 | php-7.4-debian | giuseppemorelli/devbox-apache-php:7.4 |\n| PHP 8.0 | php-8.0-debian | giuseppemorelli/devbox-apache-php:8.0 |\n| PHP 8.1 | php-8.1-debian | giuseppemorelli/devbox-apache-php:8.1 |\n| PHP 8.2 | php-8.2-debian | giuseppemorelli/devbox-apache-php:8.2 |\n| PHP 8.3 | php-8.3-debian | giuseppemorelli/devbox-apache-php:8.3 |\n\nor check directly on [Docker Hub](https://hub.docker.com/repository/docker/giuseppemorelli/devbox-apache-php/tags?page=1\u0026ordering=name)\n\n### Notes\n\nIt's created for a quick use but it doesn't follow the main role of: you need to have 1 service for each Docker Image. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuseppemorelli%2Fdocker-devbox-apache-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiuseppemorelli%2Fdocker-devbox-apache-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuseppemorelli%2Fdocker-devbox-apache-php/lists"}