Skip to content

JensPiegsa/WildFly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WildFly 27.0.0.Final on OpenJDK 17

This is a Docker image for the Java application server WildFly. The image is based on Debian and comes with OpenJDK 17. The Dockerfile has been inspired by this image.

Tags

Features

  • runs in standalone mode
  • binds to all interfaces
  • creates an admin user on first usage
  • installation path: /opt/wildfly
  • linux user: wildfly
  1. Install Docker

Follow the installation instructions for your host system.

  1. Run the image

docker container run --name="wf" -d -p 8080:8080 -p 9990:9990 -e WILDFLY_PASS="a_password" piegsaj/wildfly

or

mkdir /opt/wildfly-deployments
chmod 777 /opt/wildfly-deployments
sudo docker container run --name="wf" -d -p 8080:8080 -p 9990:9990 -e WILDFLY_PASS="a_password" -v /opt/wildfly-deployments:/opt/wildfly/standalone/deployments/:rw piegsaj/wildfly
  1. Access WildFly

  • via http://<host-ip>:8080/ and http://<host-ip>:9990/

Administration

  • follow the server log: docker logs -f wf
  • stop and remove the Docker container: docker container stop wf && docker container rm wf
  • access the shell: docker container exec -it wf /bin/bash
  • access CLI: docker container exec -it wf /opt/wildfly/bin/jboss-cli.sh -c -u=admin -p=a_password
  • run once in --admin-only mode: docker container exec wf touch /opt/wildfly/ADMIN_ONLY_MODE && docker container restart wf

Contribute

The source is available on GitHub. Please report any issues.