Local development with DDEV
Published
Updated
🐳 🐘
PHP Docker images with extras.
DDEV runs PHP projects locally in Docker containers, configured with one command. It is our recommended local development environment.
DDEV is a command line tool on top of Docker that sets up web server, PHP and database per project. It comes from the Drupal world and is common with Craft CMS, Symfony, Laravel and WordPress. DDEV is open source under the Apache 2.0 license and funded by sponsors.
Installation
DDEV runs on macOS, Linux and Windows and needs a Docker provider first: Docker Desktop or, on macOS, OrbStack.
# Install DDEV with Homebrew (macOS)
brew install ddev/ddev/ddev
# One-time setup for local HTTPS
mkcert -install
For Windows and other methods, see the DDEV installation docs.
Usage
# Configure the project, from its root folder
ddev config
# Start the containers
ddev start
# Show URLs and database details
ddev describe
# Open the project in the browser
ddev launch
# Open a shell in the web container
ddev ssh
SSH keys
To deploy or sync with fortrabbit from inside the container, make the local SSH keys available to it:
ddev auth ssh