Running Mule 4 runtime (with sample application) on docker
130
mule4docker is just an attempt to containerize Mule4 applications.
The image consists of:
Once the container has started, you can change a couple of configurations in your own mule app and copy it to apps directory (within container using volume mapping) to run them. The port remains same as long as the app is using Mule domain configurations for HTTP_Listener_Config.
If you would like to build your own container, you can pull the Dockerfile from my github page
docker run -it --name mule4docker --rm -p 8081:8081 apurba/mule4docker:v2
http://<your-server-ip>:8081/hello
You can use the following snipped for your docker-compose config but you will follow additional steps to publish sample apps. They're mentioned after the docker-compose script.
# MULESOFT MULE4 RUNTIME
mule4docker:
image: "apurba/mule4docker:v2"
container_name: "mule4docker"
volumes:
- ${USERDIR}/docker/mule4docker/domains:/opt/mule/domains
- ${USERDIR}/docker/mule4docker/apps:/opt/mule/apps
ports:
- 8081:8081
restart: always
Content type
Image
Digest
Size
1.2 GB
Last updated
almost 5 years ago
docker pull apurba/mule4docker:v2