@@ -135,14 +135,14 @@ Note that we are inside nodejs-microservice directory. `test-nodejs` would be na
135
135
--link test-mysql-microservice:db \
136
136
--name=test-nodejs-microservice test-nodejs
137
137
```
138
- 
138
+ 
139
139
140
140
9. Explaination of above command-
141
- `-d` run in detach mode
142
- `--publish` map the host port 4000 to the container port 4000
143
- `-e` pass environment variables to nodejs app necessary to make mysql connection (check index.js file)
144
- `--link test-mysql-microservice:db` link to the container named test-mysql-microservice and refer to it as db
145
- `--name` naming our container as test-nodejs-microservice
141
+ * `-d` run in detach mode
142
+ * `--publish` map the host port 4000 to the container port 4000
143
+ * `-e` pass environment variables to nodejs app necessary to make mysql connection (check index.js file)
144
+ * `--link test-mysql-microservice:db` link to the container named test-mysql-microservice and refer to it as db
145
+ * `--name` naming our container as test-nodejs-microservice
146
146
147
147
10. How to know your MYSQL_HOST-
148
148
Note that I am using `172.17.0.2` ip-address as MYSQL_HOST. This is the IpAddress of our test-mysql-microservice container.
0 commit comments