Skip to content

Commit 7ca8cc6

Browse files
authored
Merge pull request #29 from leoj3n/patch-1
Update README.md
2 parents 2722d54 + 4b581ac commit 7ca8cc6

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,29 @@ Example microservices implementation using Node.js and Docker. Below is an archi
1010

1111
In local development you can start the microservices by running
1212

13-
```sh
13+
```console
1414
$ docker-compose -f local-compose.yml up -d
1515
```
1616

17-
Navigate to `http://localhost:10001` in your browser and you will see 3 charts. As data flows into the serializer from the various sensors you will start to see data appear on the charts in real-time.
17+
Then scale up the frontend by a number of instances (3 in this case):
18+
19+
```console
20+
$ docker-compose -f local-compose.yml scale frontend=3
21+
```
22+
23+
Navigate to `http://localhost` in your browser and you will see 3 charts. As data flows into the serializer from the various sensors you will start to see data appear on the charts in real-time.
1824

1925
To check that all of the local containers are running you can execute the `ps` command by running
20-
```sh
26+
27+
```console
2128
$ docker-compose -f local-compose.yml ps
2229
```
2330

2431
### Production
2532

2633
When deploying to Triton, first setup your environment then run docker-compose. Below is an example of setting your environment variables then pushing the code to production.
2734

28-
```sh
35+
```console
2936
$ ./setup.sh
3037
$ eval "$(triton env)"
3138
$ docker-compose up -d

0 commit comments

Comments
 (0)