From 0ce45de390cc782ac4bcd332a6490587ccd03f71 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Mon, 26 Oct 2020 13:34:15 +0200 Subject: [PATCH] Update docs: remove PowerShell script in docker-compose section --- docs/tutorial/using-docker-compose/index.md | 27 +-------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/docs/tutorial/using-docker-compose/index.md b/docs/tutorial/using-docker-compose/index.md index 9927500..4422913 100644 --- a/docs/tutorial/using-docker-compose/index.md +++ b/docs/tutorial/using-docker-compose/index.md @@ -49,7 +49,7 @@ And now, we'll start migrating a service at a time into the compose file. ## Defining the App Service -To remember, this was the command we were using to define our app container. +To remember, this was the command we were using to define our app container: ```bash docker run -dp 3000:3000 \ @@ -63,20 +63,6 @@ docker run -dp 3000:3000 \ sh -c "yarn install && yarn run dev" ``` -If you are using PowerShell then use this command. - -```powershell -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 "yarn install && yarn run dev" -``` - 1. First, let's define the service entry and the image for the container. We can pick any name for the service. The name will automatically become a network alias, which will be useful when defining our MySQL service. @@ -170,17 +156,6 @@ docker run -d \ mysql:5.7 ``` -If you are using PowerShell then use this command. - -```powershell -docker run -d ` - --network todo-app --network-alias mysql ` - -v todo-mysql-data:/var/lib/mysql ` - -e MYSQL_ROOT_PASSWORD=secret ` - -e MYSQL_DATABASE=todos ` - mysql:5.7 -``` - 1. We will first define the new service and name it `mysql` so it automatically gets the network alias. We'll go ahead and specify the image to use as well.