Baseimage for WildFly application server.
473
Dockerfile to setup a container running WildFly application server.
Important: the adjustConfiguration.cli file provided with this repo includes some configuration examples on how to
configure a additionally log-category and how to adjust some thread-pool settings. Adapt this to your needs before using
the container.
To boot in standalone mode and expose the default 8080 application port:
docker run -it -p8080:8080 smaject/wildfly
Now Wildfly is listening on
http://<docker-ip>:8080
For admin console you hve to expose the admin port, too. Use e.g the following command:
docker run -d -p8080:8080 -p9990:9990 smaject/wildfly
Now you can access the admin console on (use credentials: admin / password):
http;//<docker-ip>:9990/console/
As written in the WildFly server documentation you can deploy your application in multiple ways:
The most popular way of deploying an application is using the deployment scanner. In WildFly this method is enabled by default and the only thing you need to do is to place your application inside of the deployments/ directory. It can be /opt/jboss/wildfly/standalone/deployments/ (best use predefined DEPLOYMENT_DIR variable)or /opt/jboss/wildfly/domain/deployments/ (DOMAIN_DEPLOYMENT_DIR) depending on which mode you choose (standalone is default in the smaject/wildfly image -- see above).
The simplest and cleanest way to deploy an application to WildFly running in a container started from the smaject/wildfly image is to use the deployment scanner method mentioned above.
To do this you just need to extend the smaject/wildfly image by creating a new one. Place your application inside the deployments/ (best by using the pre-defined ENV variables as stated above)directory with the ADD command.
A simple example is used for deploying the stats-war
Logging can be done in many ways. This article for example describes a lot of them.
if you need further application server configuration. There are many ways to do it, check-out this blog post
Content type
Image
Digest
Size
325.7 MB
Last updated
almost 8 years ago
docker pull smaject/wildfly