Local Sitecore Development With Docker

A full Sitecore environment on your laptop

Setting up Sitecore used to take days of installers and configuration. With Docker, a full environment — CM, databases, Solr, and rendering host — starts with a few commands.

What Runs in Containers

  • CM (Content Management) — Sitecore itself (Windows containers)
  • SQL Server — databases
  • Solr — search indexes
  • Traefik — reverse proxy with local HTTPS
  • Rendering host — your Next.js app (often run outside Docker for speed)

Getting Started (XM Cloud Starter)

  1. Install Docker Desktop with Windows containers
  2. Clone the XM Cloud starter repository
  3. Run the init script to generate certificates and environment variables
  4. Run the up script:
.\init.ps1 -InitEnv -LicenseXmlPath "C:\license\license.xml" -AdminPassword "..."
.\up.ps1
  1. Push serialized items with the Sitecore CLI

Daily Workflow

  • Develop Next.js components locally with hot reload
  • Change templates in the local CM, then dotnet sitecore ser pull
  • Commit code and serialized items together

Common Issues

  • Port conflicts — stop IIS or other services using ports 443/80
  • Memory — give Docker enough RAM (16 GB+ machine recommended)
  • Windows container mode — ensure Docker is switched to Windows containers
  • Certificates — regenerate if HTTPS fails

Alternative

For XM Cloud, many teams develop the frontend locally against a shared cloud development environment, avoiding local CM containers entirely.

Containers make Sitecore environments reproducible — every developer gets the same setup, every time.

Arivanandhan Chitheshwaran