Fixed short and long links

This commit is contained in:
adriancuadrado 2021-02-18 11:51:32 +01:00 committed by GitHub
parent b9026d1dbc
commit f454b3cf70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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.