瀏覽代碼

Udpdate some README.md files and change the version of node image for vuejs sample

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
Guillaume Lours 5 年之前
父節點
當前提交
4478c5c142
共有 6 個文件被更改,包括 7 次插入9 次删除
  1. 2 2
      react-express-mysql/README.md
  2. 二進制
      react-express-mysql/output.png
  3. 1 3
      react-java-mysql/README.md
  4. 0 0
      react-java-mysql/output.jpg
  5. 3 3
      vuejs/README.md
  6. 1 1
      vuejs/vuejs/Dockerfile

+ 2 - 2
react-express-mysql/README.md

@@ -68,13 +68,13 @@ a434bce6d2be        mysql:8.0.19                   "docker-entrypoint.s…"   8
 
 After the application starts, navigate to `http://localhost:3000` in your web browser.
 
-![page](output.jpg)
+![page](./output.png)
 
 
 The backend service container has the port 80 mapped to 80 on the host.
 ```
 $ curl localhost:80
-{"message":"Hello Docker World!"}
+{"message":"Hello from MySQL 8.0.19"}
 ```
 
 Stop and remove the containers

二進制
react-express-mysql/output.png


+ 1 - 3
react-java-mysql/README.md

@@ -62,9 +62,7 @@ b176b18fbec4        mysql:8.0.19                "docker-entrypoint.s…"   39 se
 ```
 
 After the application starts, navigate to `http://localhost:3000` in your web browser to get a colorful message.
-```
-My New React App
-```
+![page](./output.jpg)
 
 Stop and remove the containers
 ```

+ 0 - 0
react-express-mysql/output.jpg → react-java-mysql/output.jpg


+ 3 - 3
vuejs/README.md

@@ -24,8 +24,8 @@ services:
     - /project/node_modules
 ```
 The compose file defines an application with one service `sparkjava`.
-When deploying the application, docker-compose maps port 8080 of the web service container to port 80 of the host as specified in the file.
-Make sure port 80 on the host is not already being in use.
+When deploying the application, docker-compose maps port 8080 of the web service container to port 8080 of the host as specified in the file.
+Make sure port 8080 on the host is not already being in use.
 
 ## Deploy with docker-compose
 
@@ -33,7 +33,7 @@ Make sure port 80 on the host is not already being in use.
 $ docker-compose up -d
 Creating network "vuejs_default" with the default driver
 Building web
-Step 1/8 : FROM node:10
+Step 1/8 : FROM node:13.10.1-alpine
 ...
 Successfully tagged vuejs_web:latest
 WARNING: Image for service web was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.

+ 1 - 1
vuejs/vuejs/Dockerfile

@@ -1,4 +1,4 @@
-FROM node:10
+FROM node:13.10.1-alpine
 
 RUN mkdir /project
 WORKDIR /project