This project contains several images that allows you to run Ticket Monster on a WildFly server.
The pieces of this demo are:
- Wildfly 10.x Application Server (Standalone mode) + Ticket Monster application - Dockerfile
- Postgres 9.x Database Server - Docker image
- Apache HTTPD + mod_cluster (Using Server advertisement) - Docker image
This is an alternative path for running a "docker only" example using docker-compose.
- Before start, make sure you have the latest version of the images used on this Demo.
Execute:
docker-compose pull
- Start the containers.
Execute:
docker-compose up -d
- Check /mcm (mod_cluster manager).
Before starting the Wildfly servers, open /mcm that was exposed on port 80 in the previous step[3]
Execute:
open http://127.0.0.1/mcm #For Linux containers
active=`docker-machine active`; open http://`docker-machine ip $active`/mcm #For docker-machine containers
Click on Auto Refresh link.
-
Check at /mcm page that Wildfly was registered at modcluster.
-
Scale the Wildfly server.
Execute:
docker-compose scale wildfly=3
-
Verify that more servers were included at /mcm (mod_cluster manager).
-
Check the logs.
Execute:
docker-compose logs
- Access the application.
Execute:
open http://127.0.0.1/ticket-monster/ #For Linux containers
active=`docker-machine active`; open http://`docker-machine ip $active`/ticket-monster #For docker-machine containers
- Reduce the quantity of servers.
Execute:
docker-compose scale wildfly=2
- Stop the cluster.
Execute:
docker-compose stop
docker-compose rm