- Go to the
composedirectory, executedocker-compose upand go tolocalhost:5000. As you refresh the page, the number is being increased. - Parametrize the application to be executable in any environment with Redis installation.
- Rename the service
redistodb.
- Go to the
marathondirectory, executedocker-compose upand go tolocalhost:8080. - Check that marathon-lb works.
- Schedule a new application named
test- it's created fromnginximage. Expose its TCP port 80 (bridge network). - Check in marathon-lb that there is a new item related to the created service.
- Find out where the application is running (show the nginx page in your browser).
- Scale the application to 2 instances and try to reach both instances.
Hint: The Docker container created by Marathon is running on the same Docker host as the Mesos/Marathon, and
docker psis your friend.