Giter Site home page Giter Site logo

docker-wildfly-cluster's Introduction

wildfly Cluster Docker image

This is an example Dockerfile that deploys an Wildfly cluster using JGroups GossipRouter.

This image is built on the jboss/wildfly docker image.

This image is meant to be used with ianblenke/docker-jboss-gossiprouter docker image. More specifically: this should be deployed with the maestro-ng docker orchestration tool.

This could easily be adapted to use any of the other JBoss dockerfiles, there is nothing here inherently unique to Wildfly.

Usage

docker run -it -p 8080:8080 ianblenke/wildfly-cluster

Building on your own

You don't need to do this on your own, because there is an automated build for this repository, but if you really want:

You will want to install maestro-ng to use this docker image.

Here is an example maestro.yaml file:

ships:
  docker-host-1: { ip: 10.0.0.101, docker_port: 4243 }
  docker-host-2: { ip: 10.0.0.102, docker_port: 4243 }
  docker-host-3: { ip: 10.0.0.103, docker_port: 4243 }
services:
  gossiprouter:
    image: ianblenke/docker-jboss-gossiprouter:latest
    instances:
      gossiprouter-1:
        ship: docker-host-1
        ports: {gossiprouter: 12001}
        lifecycle:
          running: [{type: tcp, port: gossiprouter}]
        stop_timeout: 2
        limits:
          memory: 1G
          cpu: 1
      gossiprouter-2:
        ship: docker-host-2
        ports: {gossiprouter: 12001}
        lifecycle:
          running: [{type: tcp, port: gossiprouter}]
        stop_timeout: 2
        limits:
          memory: 1G
          cpu: 1
      gossiprouter-3:
        ship: docker-host-3
        ports: {gossiprouter: 12001}
        lifecycle:
          running: [{type: tcp, port: gossiprouter}]
        stop_timeout: 2
        limits:
          memory: 1G
          cpu: 1
  wildfly:
    image: ianblenke/wildfly-cluster:latest
    requires: [ gossiprouter ]
    instances:
      wildfly-1:
        ship: docker-host-1
        ports: {wildflyhttp: 8080}
        lifecycle:
          running: [{type: tcp, port: wildflyhttp}]
        stop_timeout: 2
        limits:
          memory: 5G
          cpu: 10
      wildfly-2:
        ship: docker-host-2
        ports: {wildflyhttp: 8080}
        lifecycle:
          running: [{type: tcp, port: wildflyhttp}]
        stop_timeout: 2
        limits:
          memory: 5G
          cpu: 10
      wildfly-3:
        ship: docker-host-3
        ports: {wildflyhttp: 8080}
        lifecycle:
          running: [{type: tcp, port: wildflyhttp}]
        stop_timeout: 2
        limits:
          memory: 5G
          cpu: 10

Source

The source is available on GitHub.

Please feel free to submit pull requests and/or fork for other JBoss project clusters.

docker-wildfly-cluster's People

Contributors

ianblenke avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.