Skip to content

Installation

Requirements

  • Castor 1.1 or later
  • PHP 8.3 or later
  • Docker with Compose v2.23 or later (the plugin generates inline configs)
  • mkcert — optional, for locally-trusted HTTPS

Install the plugin

castor composer require castor-php/docker

That is enough for the plugin to register itself: the docker:* tasks appear in castor list as soon as a castor.php exists in your project.

Next step

Head to your first environment to describe a stack, or let the plugin write it for you with castor docker:service:install.