Sign inSign up

daksa/wildfly

By daksa

Updated almost 2 years ago

wildfly

Image
0

2.8K

daksa/wildfly repository overview

WildFly packaged by DAKSA

What is WildFly?

Wildfly is a lightweight, open source application server, formerly known as JBoss, that implements the latest enterprise Java standards.

Overview of WildFly Trademarks: This software listing is packaged by daksa. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Get this image

The recommended way to get the Daksa WildFly Docker Image is to pull the prebuilt image from The Docker Hub Registry.

docker pull daksa/wildfly:latest

To use a specific version, you can pull a versioned tag. You can view the list of available versions in The Docker Hub Registry.

docker pull daksa/wildfly:[TAG]

The Docker repository for WildFly simplifies Java/Jakarta EE application deployment within containerized environments. The Docker image, daksa/wildfly, is designed to offer a streamlined and optimized WildFly application server setup.

Persisting your application

If you remove the container all your data and configurations will be lost, and the next time you run the image the database will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.

Modify the docker-compose.yml file present in this repository:

version: '3.3'
services:
  [NAMA_PROJECT]:
    image: "daksa/wildfly:[tag]"
    container_name: [NAMA_PROJECT]
    restart: always
    ports:
      - 8080:8080
      - 9990:9990
    volumes:
      - /etc/localtime:/etc/localtime
      - ./wildfly/:/opt/wildfly/
    environment:
      - DB_HOST=[IP/URL_DB]
      - DB_PORT=[PORT_DB]
      - DB_USER=[USERNAME]
      - DB_PASSWORD=[PASSWORD]
      - EMAIL_USER=[USERNAME]
      - EMAIL_PASSWORD=[PASSWORD]
      - "JAVA_OPTS=-server -Xms1024m -Xmx2048m -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=768m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true"
      - "JAVA_HOME=/opt/[version-java]"
    command: /opt/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0 -c standalone-full.xml
Configuration Details:
  1. NAMA_PROJECT: Replace with the desired name for the Docker service/container.
  2. [tag]: Replace with the specific version or tag of the WildFly image.
  3. Ports: Maps host ports to container ports (8080, 9990) for WildFly access.
  4. Volumes: Mounts local and container directories for shared deployment artifacts.
  5. Environment Variables: Set for configuring database, email, and Java runtime options.
    • DB_HOST: The IP or URL of the database.
    • DB_PORT: The port of the database.
    • DB_USER: Database username.
    • DB_PASSWORD: Database password.
    • EMAIL_USER: Email username.
    • EMAIL_PASSWORD: Email password.
    • JAVA_OPTS: Java runtime options for WildFly.
    • JAVA_HOME: Java home directory.
  6. Command: Specifies the command to run when the container starts, configuring WildFly for external access.

This Docker Compose configuration provides a flexible and customizable WildFly container, allowing seamless deployment and management of Java/Jakarta EE applications. Users can tailor settings, deploy applications, and scale as needed within a containerized environment.

Tag summary

Content type

Image

Digest

sha256:fa858686d

Size

960.7 MB

Last updated

almost 2 years ago

docker pull daksa/wildfly:r9-jv21-32.0.1-standalone