Lets you run AEM author, publish and dispatcher in separate containers. Everything gets linked together with Docker Compose and configured in docker-compose.yml.
There are few prerequisites that must be met before building and running.
You must have Docker installed before you can run this. Check Docker instructions. For Docker Compose, check instructions.
Next we need to copy AEM files to the root folder where they can be copied to Docker images.
Use file names exactly as given.
- Save AEM quickstart JAR as aem-quickstart.jar - it can be any version!
- Save license.properties as license.properties
To build everything and start the environment, run in project root:
docker-compose -d up <optional service name>
To stop all services and leave containers, run in project root:
docker-compose stop <optional service name>
To start all services again, run in project root:
docker-compose start <optional service name>
To tail docker logs with follow:
docker-compose logs -f -t
If you wish to start everything clean (will remove all changes done in AEM), run in project root:
docker-compose down
rm -r docker-data
You should change replication settings to match the environment.
Default Agent (publish) Change localhost to publish:4503.
You must configure dispatcher separately.
Here's some technical details that might help with running or debugging AEM on docker containers.
Containers will use a data volume located at ./docker-data/ for data persistence. This way crx-quickstart doesn't need to be unpacked after removing containers. Also it might help with debugging as all AEM files are easily accessible.
Handy command for attaching a terminal to a running docker container, use:
docker-compose exec <service> /bin/bash
Or if you prefer fish (pre-installed in container):
docker-compose exec <service> /usr/bin/fish
Remember to copy aem-quickstart.jar and license.properties files to project root with exactly these names before building. To build a specific image, you can use for example:
docker build --no-cache -f aem/Dockerfile -t arkki/aem:6.2-alpine .
Enjoy!