diff --git a/react-express-mysql/README.md b/react-express-mysql/README.md index 0d9f5dc..1055c99 100644 --- a/react-express-mysql/README.md +++ b/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 diff --git a/react-express-mysql/output.png b/react-express-mysql/output.png new file mode 100644 index 0000000..97fccc5 Binary files /dev/null and b/react-express-mysql/output.png differ diff --git a/react-java-mysql/README.md b/react-java-mysql/README.md index f625905..174f586 100644 --- a/react-java-mysql/README.md +++ b/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 ``` diff --git a/react-express-mysql/output.jpg b/react-java-mysql/output.jpg similarity index 100% rename from react-express-mysql/output.jpg rename to react-java-mysql/output.jpg diff --git a/vuejs/README.md b/vuejs/README.md index 19fbf94..47d0a4b 100644 --- a/vuejs/README.md +++ b/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`. diff --git a/vuejs/vuejs/Dockerfile b/vuejs/vuejs/Dockerfile index dddbcfa..2a20415 100755 --- a/vuejs/vuejs/Dockerfile +++ b/vuejs/vuejs/Dockerfile @@ -1,4 +1,4 @@ -FROM node:10 +FROM node:13.10.1-alpine RUN mkdir /project WORKDIR /project