{"id":18783770,"url":"https://github.com/tomkyle/docker-php80-boilerplate","last_synced_at":"2026-02-13T03:35:33.761Z","repository":{"id":77717051,"uuid":"423144030","full_name":"tomkyle/docker-php80-boilerplate","owner":"tomkyle","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-25T08:59:39.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-20T02:49:16.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tomkyle.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":"2021-10-31T12:38:57.000Z","updated_at":"2021-11-25T08:59:41.000Z","dependencies_parsed_at":"2023-08-22T17:34:17.419Z","dependency_job_id":null,"html_url":"https://github.com/tomkyle/docker-php80-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"tomkyle/docker-php74-boilerplate","purl":"pkg:github/tomkyle/docker-php80-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomkyle%2Fdocker-php80-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomkyle%2Fdocker-php80-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomkyle%2Fdocker-php80-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomkyle%2Fdocker-php80-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomkyle","download_url":"https://codeload.github.com/tomkyle/docker-php80-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomkyle%2Fdocker-php80-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274832159,"owners_count":25358014,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-07T20:40:38.918Z","updated_at":"2026-02-13T03:35:33.673Z","avatar_url":"https://github.com/tomkyle.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerfile boilerplate\n\n\n\n**Following the article** [How to setup an Apache, PHP, and HTTPS development environment with Docker](https://dockerwebdev.com/tutorials/docker-php-development/)\n\n## Installation\n\nClone repo and dive into project directory:\n\n```bash \n$ gh repo clone tomkyle/docker-php80-boilerplate docker-php80\n$ cd docker-php80\n```\n\nInstall [**mkcert**](https://github.com/FiloSottile/mkcert), a simple tool for making locally-trusted development certificates. \n\n```bash\n$ brew install mkcert\n```\n\n## Make certificates\n\nMake sure to keep the cert file names as seen here as they are copied to the Docker image and then referenced in `000-default.conf`\n\n```bash\n$ mkcert \\\n-key-file localhost-php80-key.pem \\\n-cert-file localhost-php80.pem \\\nlocalhost 127.0.0.1 ::1\n```\n\n## Build docker image\n\nUse this section to build a Docker image. The image is also available on https://hub.docker.com/repository/docker/tomkyle/php74\n\n```bash\n$ docker image build -t tomkyle/php80 .\n```\n\nAssuming you don’t have errors, a new Docker image will be built. Run `docker image ls` to see `php80` in the list of images.\n\n```bash\n$ docker image ls\n```\n\n## Example usage in a project\n\nCopy [docker-compose.yml](./docker-compose.yml) to your app project and adapt to your needs\n\n```yaml\nversion: '3'\nservices:\n\n  app:\n    # Change as you need\n    container_name: app\n\n    # The image from above Dockerfile\n    image: tomkyle/php80\n\n    # Assume \"htdocs\" being the public folder\n    # which itself is a sub-directory of the project root\n    volumes:\n      - ./:/var/www\n      - ./htdocs/:/var/www/html\n\n    ports:\n      - \"8080:80\"\n      - \"443:443\"\n```\n\nGo to project dir and start Docker machine:\n\n```bash\n$ cd ~/path/tp/app\n$ docker compose up\n```\n\nShutdown:\n\n```bash\n$ docker compose down\n```\n\nYour project can now be reached via\n\n- **HTTPS: [https://localhost](https://localhost)**\n\n- **HTTP-only: [http://localhost:8080](http://localhost:8080)**\n\n  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomkyle%2Fdocker-php80-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomkyle%2Fdocker-php80-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomkyle%2Fdocker-php80-boilerplate/lists"}