Docker Community Forums

Share and learn in the Docker community.

Wildfly in domain mode not deploy my war file

Hi
Here is my Dockerfile, it won’t deploy in domain mode, after enter to wildfly web GUI, on deployment does not show my war file, but when i upload manually and deploy it work without any problem.

Dockerfile:


FROM jboss/wildfly
ADD your-awesome-app.war /opt/jboss/wildfly/domain/deployments/

docker run -it jboss/wildfly /opt/jboss/wildfly/bin/domain.sh -b 0.0.0.0 -bmanagement 0.0.0.0

Build and Run:

docker build --tag=jboss/wildfly .

Run it:

docker run -it -p 9990:9990 -p 8080:8080 jboss/wildfly 

Any idea?
Thanks,

To deploy your application from the WildFly Administration Console, you will need to do the following:
Upload your WAR file (but DO NOT enable it)
Create the Virtual Host.
Enable your WAR file.

I want to deploy war file automatically, means enable it too.
Do you have any idea?

Thanks,