From bb1a5a1bfeb5404a7c3d4202bc7bcd3d2ccfae0e Mon Sep 17 00:00:00 2001 From: Charlie Arehart Date: Sun, 12 Apr 2020 14:42:42 -0500 Subject: [PATCH] nginx-golang fix some minor typos (#49) change mysql version in readme to match compose file Signed-off-by: Charlie Arehart --- nginx-golang-mysql/README.md | 2 +- nginx-golang/README.md | 6 ++++-- nginx-golang/docker-compose.yml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/nginx-golang-mysql/README.md b/nginx-golang-mysql/README.md index bbfd838..0cb6e43 100644 --- a/nginx-golang-mysql/README.md +++ b/nginx-golang-mysql/README.md @@ -24,7 +24,7 @@ services: build: backend ... db: - image: mysql:5.7 + image: mysql:8.0.19 ... proxy: build: proxy diff --git a/nginx-golang/README.md b/nginx-golang/README.md index 3fff798..42a3ca4 100644 --- a/nginx-golang/README.md +++ b/nginx-golang/README.md @@ -21,13 +21,15 @@ services: frontend: build: frontend ports: - - 80:80 + - 80:80 + depends_on: + - backend backend: build: backend ``` The compose file defines an application with two services `frontend` and `backend`. When deploying the application, docker-compose maps port 80 of the frontend service container to the same port of the host as specified in the file. -Make sure port 80 on the host is not already being in use. +Make sure port 80 on the host is not already in use. ## Deploy with docker-compose diff --git a/nginx-golang/docker-compose.yml b/nginx-golang/docker-compose.yml index c69b486..a3d6912 100644 --- a/nginx-golang/docker-compose.yml +++ b/nginx-golang/docker-compose.yml @@ -1,7 +1,7 @@ version: "3.7" services: frontend: - build: frontend + build: frontend ports: - 80:80 depends_on: