From d35fc6092300873030da120f1e39516e21f259b6 Mon Sep 17 00:00:00 2001 From: Scott Lozano <80546903+ScottLozano@users.noreply.github.com> Date: Wed, 5 Jan 2022 00:55:18 -0800 Subject: [PATCH] Update index.md --- docs/tutorial/multi-container-apps/index.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/tutorial/multi-container-apps/index.md b/docs/tutorial/multi-container-apps/index.md index 54c286b..d988a19 100644 --- a/docs/tutorial/multi-container-apps/index.md +++ b/docs/tutorial/multi-container-apps/index.md @@ -101,6 +101,8 @@ For now, we will create the network first and attach the MySQL container at star ``` Hooray! We have our `todos` database and it's ready for us to use! + + To exit the sql terminal type `exit` in the terminal. ## Connecting to MySQL @@ -194,6 +196,20 @@ With all of that explained, let's start our dev-ready container! node:12-alpine \ sh -c "yarn install && yarn run dev" ``` + + If you updated your docker file in the Bind Mount section of the tutorial use the updated command: + + ```bash hl_lines="3 4 5 6 7" + docker run -dp 3000:3000 \ + -w /app -v "$(pwd):/app" \ + --network todo-app \ + -e MYSQL_HOST=mysql \ + -e MYSQL_USER=root \ + -e MYSQL_PASSWORD=secret \ + -e MYSQL_DB=todos \ + node:12-alpine \ + sh -c "apk --no-cache --virtual build-dependencies add python2 make g++ && yarn install && yarn run dev" + ``` If you are using PowerShell then use this command.