{"id":37409536,"url":"https://github.com/at-cloud-pro/caddy-php-image","last_synced_at":"2026-01-16T05:54:38.133Z","repository":{"id":49841063,"uuid":"518362708","full_name":"at-cloud-pro/caddy-php-image","owner":"at-cloud-pro","description":"High-performance scaffold image of PHP server using Caddy runner. Common image for many of my private and commercial apps.","archived":false,"fork":false,"pushed_at":"2024-02-25T22:01:24.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-02-26T22:25:09.652Z","etag":null,"topics":["devops"],"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/at-cloud-pro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-07-27T07:56:37.000Z","updated_at":"2024-02-22T18:52:25.000Z","dependencies_parsed_at":"2023-12-03T18:24:34.178Z","dependency_job_id":null,"html_url":"https://github.com/at-cloud-pro/caddy-php-image","commit_stats":null,"previous_names":["oskarbarcz/caddy-php-image","at-cloud-pro/caddy-php-image"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/at-cloud-pro/caddy-php-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/at-cloud-pro%2Fcaddy-php-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/at-cloud-pro%2Fcaddy-php-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/at-cloud-pro%2Fcaddy-php-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/at-cloud-pro%2Fcaddy-php-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/at-cloud-pro","download_url":"https://codeload.github.com/at-cloud-pro/caddy-php-image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/at-cloud-pro%2Fcaddy-php-image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"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":["devops"],"created_at":"2026-01-16T05:54:38.043Z","updated_at":"2026-01-16T05:54:38.104Z","avatar_url":"https://github.com/at-cloud-pro.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![.github/workflows/workflow.yaml](https://github.com/at-cloud-pro/caddy-php-image/actions/workflows/workflow.yaml/badge.svg?branch=main)](https://github.com/at-cloud-pro/caddy-php-image/actions/workflows/workflow.yaml)\n\n# Caddy PHP Image\nThis is a scaffold image of high-performance PHP server using Caddy and php-fpm daemon. It's common image for my\ninternal and external projects as it contains all the PHP server setup and configuration in one place.\n\n## What's inside\nThe package uses as a base `php:8.3-alpine3.19` image, and adds:\n* fully-configured Caddy runner with php-fpm daemon\n* PHP extensions required by Symfony (`intl`, `pdo_mysql`, `pdo_pgsql`, `redis`, `sodium`)\n* PHP extensions required for maximum application performance (`opcache`, `zip`, `apcu`)\n* Composer package manager with cache optimizations (local OS cache is bind)\n* php-fpm configuration for maximum performance\n* Configured and ready to use Xdebug debugger\n\n## How to use this image\nThe simplest possible way of implementing it is shown below. Let's assume you have a Symfony (PHP) project with\nstructure as follows:\n\n```\nmy-awesome-project\n└───.idea\n└───.git\n└───.github\n└───app\n│   └───bin\n│   └───config\n│   └───public\n│   └───src\n│   └───tests\n│   └───var\n│   └───vendor\n│   │   composer.json\n│   │   composer.lock\n│   Dockerfile\n```\n\nContent of your Dockerfile:\n\n```dockerfile\nFROM ghcr.io/at-cloud-pro/caddy-php:4.0.0 AS app\n\nCOPY ./app /app\n\nRUN composer install\n\nUSER www-data:www-data\n```\nIn Dockerfile shown above you're just copying `app` folder, and you're all set. You may install Composer packages or do\nother actions that your application requires to run - it's extensive.\n\nLast line is recommended to avoid privilege issues on files created in container by other processes.\n\n## Changelog\nChangelog is available [here](CHANGELOG.md). Please update changelog each time commission is made. I adapted\n[semantic versioning](https://semver.org/) in this repository, and this versioning practice should be used.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fat-cloud-pro%2Fcaddy-php-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fat-cloud-pro%2Fcaddy-php-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fat-cloud-pro%2Fcaddy-php-image/lists"}