{"id":18783774,"url":"https://github.com/tomkyle/docker-php74-boilerplate","last_synced_at":"2026-02-07T05:01:58.518Z","repository":{"id":77717035,"uuid":"341672252","full_name":"tomkyle/docker-php74-boilerplate","owner":"tomkyle","description":"Just for learning Docker","archived":false,"fork":false,"pushed_at":"2021-11-25T09:09:23.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T07:27:03.468Z","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-02-23T19:51:47.000Z","updated_at":"2021-11-25T09:09:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3d1d92d-f0a6-458a-8099-0a5de63d28fe","html_url":"https://github.com/tomkyle/docker-php74-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/tomkyle/docker-php74-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomkyle%2Fdocker-php74-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomkyle%2Fdocker-php74-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomkyle%2Fdocker-php74-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomkyle%2Fdocker-php74-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomkyle","download_url":"https://codeload.github.com/tomkyle/docker-php74-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomkyle%2Fdocker-php74-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29186742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T03:35:06.566Z","status":"ssl_error","status_checked_at":"2026-02-07T03:34:57.604Z","response_time":63,"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":[],"created_at":"2024-11-07T20:40:39.363Z","updated_at":"2026-02-07T05:01:58.494Z","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-php74-boilerplate docker-php74\n$ cd docker-php74\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-php74-key.pem \\\n-cert-file localhost-php74.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 php74 .\n```\n\nAssuming you don’t have errors, a new Docker image will be built. Run `docker image ls` to see `php74` 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: php74\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-php74-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomkyle%2Fdocker-php74-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomkyle%2Fdocker-php74-boilerplate/lists"}