Difference between revisions of "System Architecture"

From Rhomicom Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
== Docker Container Architecture ==
 
== Docker Container Architecture ==
 
# Container Images
 
# Container Images
#*[[File:Running Docker Compose Rhomicom ERP.png|alt=Running Docker Compose Rhomicom ERP|border|thumb|442x442px|Running Docker Compose Rhomicom ERP]]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
+
#*[[File:Running Docker Compose Rhomicom ERP.png|alt=Running Docker Compose Rhomicom ERP|border|thumb|442x442px|Running Docker Compose Rhomicom ERP]]'''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
+
#* '''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
#* rho-pgdb: The postgreSQL v12.4 container that houses the database behind the rhomicom erp system
+
#* '''rho-pgdb:''' The postgreSQL v12.4 container that houses the database behind the rhomicom erp system
#* rho-redis: The redis server container used by the rho-nginx container to handle all php caching and session handling
+
#* '''rho-redis:''' The redis server container used by the rho-nginx container to handle all php caching and session handling
#* rho-mysqldb: The MySQL 5.7 container for the biometric (fingerprint) database behind the rhomicom banking solution
+
#* '''rho-mysqldb:''' The MySQL 5.7 container for the biometric (fingerprint) database behind the rhomicom banking solution
#* rho-pgadmin: pgAdmin4 container for managing the postgreSQL database
+
#* '''rho-pgadmin:''' pgAdmin4 container for managing the postgreSQL database
#* rho-administrator: Adminer container for managing the MySQL Database. It can as well be used to manage the postgreSQL DB
+
#* '''rho-administrator:''' Adminer container for managing the MySQL Database. It can as well be used to manage the postgreSQL DB
 
# Folder/File Structure
 
# Folder/File Structure
 
# Sample Docker Compose File
 
# Sample Docker Compose File

Revision as of 20:21, 5 December 2020

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
    • Running Docker Compose Rhomicom ERP
      Running Docker Compose Rhomicom ERP
      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
    • rho-pgdb: The postgreSQL v12.4 container that houses the database behind the rhomicom erp system
    • rho-redis: The redis server container used by the rho-nginx container to handle all php caching and session handling
    • rho-mysqldb: The MySQL 5.7 container for the biometric (fingerprint) database behind the rhomicom banking solution
    • rho-pgadmin: pgAdmin4 container for managing the postgreSQL database
    • rho-administrator: Adminer container for managing the MySQL Database. It can as well be used to manage the postgreSQL DB
  2. Folder/File Structure
  3. Sample Docker Compose File