Public | Automated Build

Last pushed: 6 months ago
Short Description
WildFly with Swagger UI Welcome Page
Full Description


This is a Dockerfile that extends the base WildFly application server image. It replaces the default Wildfly welcome page with the Swagger UI and allows replacing the default with your own URL. This makes it easier to deliver a Swagger UI along with your REST microservice based on Wildfly. The user just enters the domain (like "http://localhost:8080") and the Swagger UI with your URL will show up.


  • Wildfly 10.1.0.Final
  • Swagger UI 3.1.7


The usage is exactly as described in the Wildfly Docker documentation. The only difference is that you can pass an additional parameter SWAGGER_API_URL that sets the Swagger UI default URL.

docker run -it -e SWAGGER_API_URL="http://localhost:8080/api" -p 8080:8080 fuinorg/wildfly-swagger-ui

This allows setting the URL to the current domain at startup.

Extending the image

When you create your own microservice's docker image, you can also override the URL by setting the SWAGGER_API_URL environment variable.

FROM fuinorg/wildfly-swagger-ui

Of course you can start Wildfly also with other parameters:

FROM fuinorg/wildfly-swagger-ui
RUN /opt/jboss/wildfly/bin/ admin Admin#70365 --silent
CMD ["/opt/jboss/wildfly/bin/", "/opt/jboss/wildfly/bin/", "-b", "", "-bmanagement", ""]

Note the CMD "" parameter: This has to be always the first CMD parameter before any other Wildfly standard arguments.

Docker Pull Command
Source Repository