Sign inSign up

jmaster1985/operaton-wildfly-pr

By jmaster1985

โ€ขUpdated over 1 year ago

Image
0

144

jmaster1985/operaton-wildfly-pr repository overview

โ Operaton WildFly

This Docker image provides a process automation engine running on WildFly, suitable for both quick development and scalable production deployments. It supports both an embedded H2 database and connection to an external relational database (RDBMS) such as PostgreSQL or MySQL.


โ ๐Ÿ”ง Usage

You can run this container in two modes:

  • With an embedded H2 database (default, for development and evaluation)
  • With an external RDBMS (e.g., PostgreSQL, MySQL) for production use

โ ๐Ÿงช Running with Embedded H2 (Development)

To quickly launch the engine using an in-memory H2 database:

docker run -d --name operaton \
  -p 8080:8080 \
  operaton/wildfly

Once running, access the web interface at:
http://localhost:8080/operatonโ 

You can customize the webapp path with the OPERATON_WEBAPP_NAME environment variable.


โ ๐Ÿ—๏ธ Running with an External Database (Production)

To connect Operaton to an external RDBMS, set the proper JDBC driver and connection properties.


โ ๐Ÿฌ Example: Using MySQL

services:
  operaton:
    image: operaton/wildfly
    container_name: operaton
    environment:
      - DB_DRIVER=com.mysql.cj.jdbc.Driver
      - DB_URL=jdbc:mysql://mysql:3306/operaton?autoReconnect=true&sessionVariables=transaction_isolation='READ-COMMITTED'
      - DB_USERNAME=root
      - DB_PASSWORD=rootpassword
      - OPERATON_WEBAPP_NAME=operaton
    ports:
      - "8080:8080"
    depends_on:
      - mysql
    restart: always

  mysql:
    image: mysql:8.0
    container_name: mysql
    environment:
      - MYSQL_ROOT_PASSWORD=rootpassword
      - MYSQL_DATABASE=operaton
      - MYSQL_INITDB_EXTRA_ARGS=--transaction-isolation=READ-COMMITTED
    ports:
      - "3306:3306"
    volumes:
      - mysql-data:/var/lib/mysql
    restart: always

volumes:
  mysql-data:
    driver: local

โ ๐Ÿ˜ Example: Using PostgreSQL

services:
  operaton:
    image: operaton/wildfly
    container_name: operaton
    environment:
      - DB_DRIVER=org.postgresql.Driver
      - DB_URL=jdbc:postgresql://postgres:5432/operaton
      - DB_USERNAME=postgres
      - DB_PASSWORD=postgrespassword
      - OPERATON_WEBAPP_NAME=operaton
    ports:
      - "8080:8080"
    depends_on:
      - postgres
    restart: always

  postgres:
    image: postgres:15
    container_name: postgres
    environment:
      - POSTGRES_DB=operaton
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgrespassword
    ports:
      - "5432:5432"
    volumes:
      - postgres-data:/var/lib/postgresql/data
    restart: always

volumes:
  postgres-data:
    driver: local

This setup initializes a PostgreSQL database and connects the application to it using standard JDBC settings.


โ โš™๏ธ Configuration

Supported environment variables:

VariableDescriptionExample
DB_DRIVERJDBC driver class nameorg.postgresql.Driver
DB_URLJDBC connection URLjdbc:mysql://... or jdbc:postgresql://
DB_USERNAMEDatabase usernameroot, postgres, etc.
DB_PASSWORDDatabase passwordyour-password
OPERATON_WEBAPP_NAMEWebapp context pathoperaton

โ ๐Ÿ“‚ Default Credentials

The application ships with default login credentials:

  • Username: demo
  • Password: demo

โ ๐Ÿ“„ License

This project is distributed under the terms of the Apache 2.0 Licenseโ .

Tag summary

Content type

Image

Digest

sha256:d1140008aโ€ฆ

Size

395.9 MB

Last updated

over 1 year ago

docker pull jmaster1985/operaton-wildfly-pr