PHPackages                             castor-php/docker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. castor-php/docker

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

castor-php/docker
=================

Castor plugin for docker

v0.3.0(1w ago)0600MITPHPPHP &gt;=8.3CI passing

Since Jan 5Pushed 3w agoCompare

[ Source](https://github.com/castor-php/docker)[ Packagist](https://packagist.org/packages/castor-php/docker)[ RSS](/packages/castor-php-docker/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)Dependencies (5)Versions (11)Used By (0)

Castor Docker Plugin
====================

[](#castor-docker-plugin)

A [Castor](https://castor.jolicode.com/) plugin that turns a PHP description of your stack into a Docker Compose environment, and gives you the tasks to drive it.

📖 **[Read the documentation](https://castor-php.github.io/docker/)**

Features
--------

[](#features)

- 🚀 Automatic Docker Compose configuration generation
- 🔧 Pre-configured services for common infrastructure components
- 🎯 Service-specific tasks for common operations
- 🔒 On-demand, locally-trusted HTTPS (with mkcert support)
- 🌐 Caddy-based reverse proxy with automatic routing from Docker labels
- 📦 Multi-stage Docker builds with registry caching
- 👥 Multi-application, multi-language support in a single project

Installation
------------

[](#installation)

```
castor composer require castor-php/docker
```

Usage
-----

[](#usage)

1. Create a `castor.php` file in your project root:

```
