Skip to content

Commit

Permalink
fix: Use the correct illustration; Use the correct bridge network nam…
Browse files Browse the repository at this point in the history
…e. (#73)
  • Loading branch information
JasonHXiang authored Nov 5, 2023
1 parent 7cea1c0 commit 7a845ec
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions bizdemo/easy_note/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Get the gateway ip of this default network to reach three components.
```shell
docker inspect easy_note_default
```
![img.png](img.png)
<img src="images/network.png" width="2850" alt=""/>

### 3.Replace ip in Dockerfile
You can use gateway ip in ``step 2`` to replace MysqlIp , EtcdIp and JAEGER_AGENT_HOST.
Expand Down Expand Up @@ -228,15 +228,11 @@ docker build -t easy_note/api -f ApiDockerfile .
```

### 5.Run containers
* Create bridge network for these three services.
* Run containers in ``easy_note_default`` network with the subnet inspected in the Step 2.
```shell
docker network create -d bridge easy_note
```
* Run contains in ``easy_note`` network.
```shell
docker run -d --name user --network easy_note easy_note/user
docker run -d --name note --network easy_note easy_note/note
docker run -d -p 8080:8080 --name api --network easy_note easy_note/api
docker run -d --name user --network easy_note_default easy_note/user
docker run -d --name note --network easy_note_default easy_note/note
docker run -d -p 8080:8080 --name api --network easy_note_default easy_note/api
```
## API requests

Expand All @@ -247,4 +243,4 @@ docker build -t easy_note/api -f ApiDockerfile .

### How to upgrade kitex_gen

- refer to [Makefile](Makefile)
- refer to [Makefile](Makefile)

0 comments on commit 7a845ec

Please sign in to comment.