Skip to content

Commit 6861616

Browse files
authored
Update README.md
1 parent 7425a44 commit 6861616

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ docker-compose -f docker-compose-test.yml up -d
4848

4949
It will up database, two instances of the container app and a `nginx` as a load balancer which will distribute the requests across the containers emulating a situation where we have more than a single instance running for the application. The image for the container app is ready and published on docker hub, you can check it here: https://hub.docker.com/r/felipeoriani/tasks-api-nodejs-typescript
5050

51+
52+
```mermaid
53+
flowchart TD
54+
G(Client) -.loadBalancer:4000.-> LB(Nginx Load Balancer)
55+
subgraph Backend App
56+
LB -.api01:3000.-> API1(NodeJs API - instance 01)
57+
LB -.api02:3000.-> API2(NodeJs API - instance 02)
58+
API1 -.-> Db[(PostgreSql Database)]
59+
API2 -.-> Db[(PostgreSql Database)]
60+
end
61+
```
62+
5163
You also can see how the image was build at `Dockerfile`.
5264

5365
But from this repository you will need to run:

0 commit comments

Comments
 (0)