Sitecore Docker Container Installation and running Sitecore Experience Platform - Single (XP0)

 This blog is for the setup of development environments on Windows that use Docker Desktop and running Sitecore Experience Platform - Single (XP0) instance with minimal configuration.


Prerequisites


  1. Windows 10 Professional or Enterprise version 1903 or later

  2. You must enable Hyper-V in Windows features on or off.


Hardware guidelines

  1. 16GB of RAM is the minimum, and 32GB of RAM is recommended.

  2. At least 25GB of free disk space for Sitecore container images.


Install Docker

  1. Download Docker Desktop for Windows and run the installer.

  2. During installation, choose to use Windows containers instead of Linux containers. You can also switch to Windows containers after installation.

Switch to Windows containers

Sitecore development uses Windows-based containers. If you did not choose Windows containers during the installation, do it now.

To switch to Windows containers:

  • Use the Docker item (the whale icon) in the Windows system tray:



Run your first Sitecore instance

Note: The default Sitecore container configuration uses specific ports. To avoid any conflicts, ensure that the following ports are not being used by another process: 443, 8079, 8081, 8984, and 14330.

In Services,  Stop all services related SQL server and Solr, and stop IIS server also.

Clone the Docker Examples repository

Start by cloning the Docker Examples repository to a location on your machine, for example, C:\sitecore\docker-container\.In this topic, you use the getting-started folder within the repository.

The repository includes a script that performs all preparation steps automatically:  the init.ps1 script.

To run this script:

  1. Open a PowerShell administrator prompt.

  2. Run the following command, replacing the -LicenseXmlPath with the location of your Sitecore license file.

.\init.ps1 -LicenseXmlPath C:\License\license.xml

Start Sitecore

Run the following command in the same folder as your Compose file:

docker-compose up -d

This command does the following:

  • Downloads all required images from the Sitecore Container Registry.

  • Creates a default network to use.

  • Creates a container for each configured service.

  • Starts the containers with their configured entry points.

This means you can access your Sitecore Experience Platform - Single (XP0) containers like this:

Stop Sitecore

To stop the Sitecore instance:

Run the following command: docker-compose stop


This stops your containers but does not remove them. They can then be started again with docker-compose start.

  • To stop and remove the containers: docker-compose down






Comments

Popular posts from this blog

How to upload webp image in Sitecore CMS

How to enable custom logger in Sitecore