Skip to content

alan-ps/dsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Simple Drupal

Minimal Docker environment for Drupal 11 — Nginx, PHP 8.5, MariaDB 11.4, xDebug.

Prerequisites

Docker and Docker Compose

Windows users: run the install script from WSL or Git Bash.

Clone and run the project from inside the WSL filesystem (e.g. ~/projects/), not from the Windows filesystem (/mnt/c/...). When project files live on the Windows filesystem, Docker accesses them via a slow protocol bridge between Windows and WSL2, which causes significant I/O latency. This can lead to race conditions during Drupal installation — files written by Composer may not be visible to PHP-FPM in time, resulting in errors. Keeping files on the WSL filesystem eliminates the bridge and gives Docker native file access.

Installation

  1. Clone the repo git clone https://github.com/alan-ps/dsd
  2. Start containers docker compose up -d
  3. Run install ./.build/install.sh scratch

The site will be available at http://localhost:7080. Admin credentials: admin / admin.

Install modes

Command Description
./.build/install.sh scratch Fresh Drupal install
./.build/install.sh db Import from existing database dump (web/file.sql)
./.build/install.sh config Install from existing exported configuration (drush cex)

Refs

About

Docker Simple Drupal: easy way to deploy Drupal project in few steps. Take 🍸 and let the magic happen!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors