AEM Dispatcher setup made easy with Docker | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
June 10, 2021

AEM Dispatcher setup made easy with Docker | AEM Community Blog Seeding

  • June 10, 2021
  • 1 reply
  • 5824 views

BlogImage.jpg

AEM Dispatcher setup made easy with Docker by Mani Kumar

Abstract

Worried about AEM dispatcher set up in the local environment here is the easy solution with docker.

Prerequisites
Docker setup in local
AEM Publish instance setup
JDK 1.8 and above

Steps to run the dispatcher in docker container
Once the docker is installed in local start the docker using command line or using docker desktop(Installation document for docker https://docs.docker.com/docker-for-windows/install/)
git clone https://github.com/ManiKorthivada/aemdockerdispatcher
Run the “docker build -t easy-docker-dispatcher .” command
Run the “docker run -it -p 8080:80 easy-docker-dispatcher” command
Open localhost:8080 in the browser that's it now you have the local dispatcher up and running rendering content from the local publisher environment.

Files that need customization for specific project
dispatcher.conf update any module loading and other virtual host configuration in this file
Rewrite rules can be updated in the same conf file as shown in the below screen

Read Full Blog

AEM Dispatcher setup made easy with Docker

Q&A

Please use this thread to ask the related questions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

March 15, 2022

Thanks for sharing this solution to have the dispatcher locally.

 

I'd like to add this note. To make it work on Mac M1 processors, the 3rd step to build the docker image should have the "--platform linux/amd64" flag. As in:

 

docker build --platform linux/amd64 -t easy-docker-dispatcher .

 

I hope this will be helpful.