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

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
Guillaume Lours 2020-03-24 17:00:41 +01:00
parent 7b5e27dd48
commit 4478c5c142
6 changed files with 7 additions and 9 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

View File

@ -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
```

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -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`.

View File

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