My webMethods Server 10.15 | My webMethods Server Webhelp | Administering My webMethods Server | Startup and Configuration | Using My webMethods Server with Docker | Clustering My webMethods Server Containers | My webMethods Cluster Sample | Sample Template for Clustering My webMethods Server Containers
 
Sample Template for Clustering My webMethods Server Containers
Example: Run My webMethods Server Containers with Docker Compose
The following Docker Compose sample creates a My webMethods Server with two nodes MWS_node1 and MWS_node2 from the image myImageRepo/mws/server:myMwsImage, and also creates a Universal Messaging container to use as the JMS provider for the cluster. You must configure the My webMethods Server nodes to use the Universal Messaging server instance on the Cluster Administration page in My webMethods after starting up the containers. To enable the containers to communicate you must also setup the container networking.
version: "3"
services:
mws_node1:
image: "myImageRepo/mws/server:myMwsImage"
container_name: node1
environment:
- DB_TYPE=ms
- DB_USERNAME=webmuser
- DB_PASSWORD=webmpass
- DB_URL=jdbc:wm:sqlserver://db.host:port;databaseName=WEBMDB
- NODE_NAME=MWS_node1
ports:
- "8686:8585"
volumes:
- ./node1_logs_vol:/opt/softwareag/MWS/volumes/logs
mws_node2:
image: "myImageRepo/mws/server:myMwsImage"
container_name: MWS_node2
environment:
- DB_TYPE=ms
- DB_URL=jdbc:wm:sqlserver:db.host:port;databaseName=WEBMDB
- DB_USERNAME=webmuser
- DB_PASSWORD=webmpass
- NODE_NAME=MWS_node2
ports:
- "8585:8585"
volumes:
- ./node2_logs_vol:/opt/softwareag/MWS/volumes/logs
um_server:
image: myImageRepo/um/um:myUmImage
container_name: um_server
ports:
- "9010:9000"