diff --git a/get-started/08_using_compose.md b/get-started/08_using_compose.md index 779855aa86..bb2c5dae23 100644 --- a/get-started/08_using_compose.md +++ b/get-started/08_using_compose.md @@ -104,8 +104,8 @@ docker run -dp 3000:3000 ` 3. Let's migrate the `-p 3000:3000` part of the command by defining the `ports` for the service. We will use the - [short syntax](../compose/compose-file/index.md#short-syntax-1) here, but there is also a more verbose - [long syntax](../compose/compose-file/index.md#long-syntax-1) available as well. + [short syntax](../compose/compose-file/compose-file-v3.md#short-syntax-1) here, but there is also a more verbose + [long syntax](../compose/compose-file/compose-file-v3.md#long-syntax-1) available as well. ```yaml version: "3.7" @@ -117,9 +117,8 @@ docker run -dp 3000:3000 ` ports: - 3000:3000 ``` - 4. Next, we'll migrate both the working directory (`-w /app`) and the volume mapping (`-v "$(pwd):/app"`) by using - the `working_dir` and `volumes` definitions. Volumes also has a [short](../compose/compose-file/index.md#short-syntax-3) and [long](../compose/compose-file/index.md#long-syntax-3) syntax. + the `working_dir` and `volumes` definitions. Volumes also has a [short](../compose/compose-file/compose-file-v3.md#short-syntax-3) and [long](../compose/compose-file/compose-file-v3.md#long-syntax-3) syntax. One advantage of Docker Compose volume definitions is we can use relative paths from the current directory.