AEM Dispatcher setup made easy with Docker

Mani Kumar
2 min readJun 8, 2021

--

Running AEM dispatcher in docker container

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

Prerequisites

  1. Docker setup in local
  2. AEM Publish instance setup
  3. JDK 1.8 and above

Steps to run the dispatcher in docker container

  1. 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/)
  2. git clone https://github.com/ManiKorthivada/aemdockerdispatcher
  3. Run the “docker build -t easy-docker-dispatcher .” command
  4. Run the “docker run -it -p 8080:80 easy-docker-dispatcher” command
  5. 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

  1. dispatcher.conf update any module loading and other virtual host configuration in this file
  2. Rewrite rules can be updated in the same conf file as shown in the below screen

3. dispatcher.any file which includes all the rules and farms of the AEM dispatcher.

4. Update all your project-specific rules in the dispatcher.any

5. Once updates are done build the image and run it again.

6. Make any necessary changes for the container using Dockerfile from the repo.

Docker hub URL:

https://hub.docker.com/r/mkorthivada/aemdockerdispatcher

~~MV

--

--

Mani Kumar
Mani Kumar

Written by Mani Kumar

Senior Developer having 8 years of experience in AEM/Java. Tech enthusiast, chess player and keen to learn new things.

Responses (1)