A minimal Drupal 11 starter that runs on Docksal. This project lets you spin up a clean Drupal site with one command, using Composer-driven workflows and a simple project/ workspace that is symlinked into runtime paths.
- Docker running on your machine
- Docksal installed (see Linux install below)
finavailable in your shell (installed with Docksal)
- Ensure Docker is installed and running (Docker Engine + Compose plugin).
- Install Docksal via the official installer script:
curl -fsSL https://get.docksal.io | bash - Start Docksal system services:
fin system start
For detailed instructions and supported distributions, see: https://docs.docksal.io/installation/linux/
- Edit
.docksal/docksal.envwith settings specific to your project. - Optional: create
.docksal/docksal-local.envto enable Xdebug (setXDEBUG_ENABLED=1) and/or add config for AI coding assistants. - Initialize the project (first run or to reinitialize):
fin init
- Docksal uses the
VIRTUAL_HOSTvariable to define the site URL. - By default, if
VIRTUAL_HOSTis not set, Docksal derives it from the project directory name:<folder-name>.docksal.site.- Example: if your project folder is
my-project, the default URL will behttp://my-project.docksal.site.
- Example: if your project folder is
- To change the URL, set
VIRTUAL_HOSTin.docksal/docksal.env(or.docksal/docksal-local.env) and restart:# .docksal/docksal.env VIRTUAL_HOST=my-site.docksal.site fin project restart
- Running
fin initproduces a minimal Drupal installation. - Add contrib or custom modules or themes according to your project's needs (put your code under
project/; composer scripts symlink to runtime paths).- Use the
fin theme/newcommand to generate a new theme using Drupal's Theme Starter Kit. - Example:
fin theme/new --name="My Theme" --machine-name="my_theme" --description="A custom theme for myself." - See
.docksal/commands/theme/newfor more details, or runfin help theme/new.
- Use the
- Document root:
web/ - Example default virtual host:
http://docksal-drupal-11.docksal.site(if your folder name isdocksal-drupal-11).
- All commands are intended to run inside the Docksal (Linux) environment.