A comprehensive guide to setting up Drupal with Docker using DDEV. Follow these step-by-step instructions to get your Drupal site up and running with ease.
Before you begin, make sure you have the following tools installed on your machine:
mkdir my-drupal-site
cd my-drupal-site
ddev config
When prompted:
You can download Drupal manually or use Composer. For Composer:
ddev composer create drupal/recommended-project
This will set up a new Drupal project in the web directory.
To enable HTTPS for your local development environment, you need to install mkcert. Run the following command:
mkcert -install
This will create a local certificate authority (CA) and install the CA in your system's trust store.
ddev start
DDEV will create and start the necessary Docker containers for your project.
Open your browser and go to http://my-drupal-site.ddev.site (replace my-drupal-site with your project name if different). This will take you to the Drupal installation page.
Follow the on-screen instructions to complete the Drupal installation:
Once the installation is complete, you can access your Drupal site at http://my-drupal-site.ddev.site.
Here are some additional configurations you might find useful:
Here are some useful commands for managing your Drupal project with DDEV:
ddev stop
ddev delete
ddev ssh
This guide should help you get your Drupal site up and running with Docker using DDEV. If you have any specific requirements or run into any issues, feel free to ask!
Published By: Krishanu Jadiya
Updated at: 2024-07-29 21:36:05