Skip to content

Commit

Permalink
Merge pull request #238 from lucasersson/patch-1
Browse files Browse the repository at this point in the history
Update index.md
  • Loading branch information
StefanScherer authored Feb 9, 2022
2 parents f1f2012 + 9bf4803 commit 8725352
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/tutorial/using-docker-compose/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ docker-compose version
for the current schema versions and the compatibility matrix.

```yaml
version: "3.7"
version: "3.8"
```
1. Next, we'll define the list of services (or containers) we want to run as part of our application.
```yaml hl_lines="3"
version: "3.7"
version: "3.8"

services:
```
Expand Down Expand Up @@ -81,7 +81,7 @@ docker run -dp 3000:3000 `
The name will automatically become a network alias, which will be useful when defining our MySQL service.

```yaml hl_lines="4 5"
version: "3.7"
version: "3.8"

services:
app:
Expand All @@ -92,7 +92,7 @@ docker run -dp 3000:3000 `
So, let's go ahead and move that into our file.

```yaml hl_lines="6"
version: "3.7"
version: "3.8"
services:
app:
Expand All @@ -106,7 +106,7 @@ docker run -dp 3000:3000 `
[long syntax](https://docs.docker.com/compose/compose-file/compose-file-v3/#long-syntax-1) available as well.

```yaml hl_lines="7 8"
version: "3.7"
version: "3.8"
services:
app:
Expand All @@ -122,7 +122,7 @@ docker run -dp 3000:3000 `
One advantage of Docker Compose volume definitions is we can use relative paths from the current directory.

```yaml hl_lines="9 10 11"
version: "3.7"
version: "3.8"
services:
app:
Expand All @@ -138,7 +138,7 @@ docker run -dp 3000:3000 `
1. Finally, we need to migrate the environment variable definitions using the `environment` key.

```yaml hl_lines="12 13 14 15 16"
version: "3.7"
version: "3.8"
services:
app:
Expand Down Expand Up @@ -185,7 +185,7 @@ docker run -d `
go ahead and specify the image to use as well.

```yaml hl_lines="6 7"
version: "3.7"
version: "3.8"

services:
app:
Expand All @@ -200,7 +200,7 @@ docker run -d `
the default options are used. There are [many more options available](https://docs.docker.com/compose/compose-file/compose-file-v3/#volume-configuration-reference) though.

```yaml hl_lines="8 9 10 11 12"
version: "3.7"
version: "3.8"
services:
app:
Expand All @@ -217,7 +217,7 @@ docker run -d `
1. Finally, we only need to specify the environment variables.

```yaml hl_lines="10 11 12"
version: "3.7"
version: "3.8"
services:
app:
Expand All @@ -238,7 +238,7 @@ At this point, our complete `docker-compose.yml` should look like this:


```yaml
version: "3.7"
version: "3.8"
services:
app:
Expand Down

0 comments on commit 8725352

Please sign in to comment.