Commit 77b748b1 authored by Sakuna Yashara's avatar Sakuna Yashara

4th commit

parent 89cb69b0
# Deployment of informatZen Services
# Deployment of subi Services
Follwoing figure discussed the architecture of the informatZen platfrom.
Follwoing figure discussed the architecture of the subi platfrom.
![Alt text](subi-architecture.jpg?raw=true "informatZen platfrom architecture")
![Alt text](subi-architecture.jpg?raw=true "subi platfrom architecture")
## Services
......@@ -14,20 +14,6 @@ There are three main servies;
3. gateway
```
## Configuration
Change `host.docker.local` field in `.env` file to local machines ip. also its possible to add a host entry to `/etc/hosts` file by overriding `host.docker.local` with local machines ip. following is an example of `/etc/hosts` file.
```
10.4.1.104 host.docker.local
```
Give write permission to `/private/var/services/connect/elassandra` directory in the server. following is the way to give the permission,
```
sudo mkdir /private/var/services/connect/elassandra
sudo chmod -R 777 /private
```
## Deploy services
......@@ -39,14 +25,8 @@ docker-compose up -d aplos
docker-compose up -d gateway
docker-compose up -d web
```
** After hosting website, it can be reached on `<Ip address of the Vm>:4300`.
## Connect apis
gateway service will start a REST api on `7654` port. For an example if your machines ip is `10.4.1.104` the apis can be access via `10.4.1.104:7654/api/<apiname>`.Following are the available rest api end points and their specifications,
** Open `7654` and `4300` port on VM for public
** After hosting website, it can be reached on `<Ip address of the Vm>:4400`.
** Open `7654` and `4400` port on VM for public
#### 1. put customer details
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment