System Architecture

From Rhomicom Wiki
Jump to navigation Jump to search

Direct Installation Architecture

  1. Folder/File Structure
    • Web Root Folder (e.g. /var/www/html or /usr/share/nginx/html)
    • Database Directory (e.g. /opt/apache/adbs)
  2. Database Schemas
  3. Code Executions (Client Javascript to Server PHP)
    • Code execution always starts from the client making a request via a javascript ajax call. All client requests are processed first by index.php file and subsequently forwarded to the appropriate php file for execution

Docker Container Architecture

  1. Container Images
    • rho-nginx: This is the container that hosts the web root files and folders. It runs nginx web server on port 8000 and serves the ERP web files. It has php7.4 installed. It is based on the rhomicom/rho-erp-base:v1.2 image on docker hub. Its root folder /usr/share/nginx/html is mounted to the local directory src/RHO_ERP_WEB
    • rho-api: This container contains an installation of NodeJS, expressJS, Java and Chromium Browser. It's main purpose is to make availble apis that can be called by the application running on rho-nginx to execute specific tasks in the background and serve the output back to rho-nginx container
      Running Docker Compose Rhomicom ERP
      Running Docker Compose Rhomicom ERP
  2. Folder/File Structure
  3. Sample Docker Compose File