Skip to content

Creyent/payara-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payara-Dockerized

Payara full docker environment

Docker-compose file for a cluster dockerized Payara environment.

Apache load balancer is setted and persisted by volume, easily configurable.

Payara cluster it's configured, volumes persist all the files related to the new nodes and the DAS.

Docker composer specifications

  • Apache2
  • PHP7
  • Payara Server Full 181

Built on a docker-compose.yml file.

Note: This environment configuration was made on Windows 10. On Linux the shared folders are not setted before because it works out of the box. The usual IP used for docker is (192.168.99.100), if differs please replace for your actual setup.

Requirements

  • Docker
  • VirtualBox (usually installed with docker)
  • GIT (just for clone this repo)

Installation

  • Go into any terminal and clone or fork the project.
  • Browse into cloned folder:
    $ cd payara-cluster
  • Create a .env from the .env.dist file. Configure it according to your needs.
    cp .env.dist .env
  • Build the required images typing in the docker terminal:
    $ docker-compose build

Extract the content from das-data into /das-data, nodos into /nodos and all will be setted.

Use

  • Once cloned, go into folder:
    $ cd payara-cluster
  • Create and run the containers typing in the docker terminal:
    $ docker-compose up -d

URLs

Ports are configured in .env file.

All other IPs and ports only have internal access.

Customize

If you dont need more nodes/instances or want to add/remove other containers see this file.

TODO

  • Tests, some configurations.

Comments

Any comment feel free to mail me: creyent [at] gmail [dot] com

Contributing

Thanks for contributing! If you find errors/typos/anything/... please send me a Pull Request, mail me or open an issue.