Book Image

WildFly Cookbook

Book Image

WildFly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Running WildFly in domain mode in Docker using different Docker containers


In this recipe, you will learn how to run WildFly in the domain mode using containers. We will use one container to act as the domain-controller and two other containers, each to act as the servers of a server-group.

Getting ready

To properly follow and understand the topics treated in this recipe, we need to know what the WildFly domain mode is, along with its principles. You can also refer to Chapter 3, Working with XAML, which is about running WildFly in the domain mode.

Furthermore, you need to have followed the first two recipes of this chapter, of having a working Docker installation and a WildFly image available for use.

Nevertheless, to simplify our recipe, we will rely on the WildFly default configuration files: domain.xml, host-master.xml and host-slave.xml.

How to do it…

  1. First of all, we need to create a new Dockerfile based on the foogaro/wildfly image, which will contain the entire configuration needed to run...