File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -135,14 +135,14 @@ Note that we are inside nodejs-microservice directory. `test-nodejs` would be na
135135 --link test-mysql-microservice:db \
136136 --name=test-nodejs-microservice test-nodejs
137137 ```
138- 
138+ 
139139
1401409. 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
146146
14714710. How to know your MYSQL_HOST-
148148Note that I am using `172.17.0.2` ip-address as MYSQL_HOST. This is the IpAddress of our test-mysql-microservice container.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments