Skip to content

Commit b70ea06

Browse files
committed
PR feedback
1 parent 189532e commit b70ea06

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/containers/docker-compose-properties.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,15 @@ services:
8787
> [!NOTE]
8888
> DockerComposeBuildArguments, DockerComposeDownArguments, and DockerComposeUpArguments are new in Visual Studio 2019 version 16.3.
8989
90-
## Docker Compose override files
90+
## Overriding default Docker Compose configuration
9191
9292
You can override certain settings by placing a file named *docker-compose.vs.debug.yml* (for the **Debug** configuration) or *docker-compose.vs.release.yml* (for the **Release** configuration) in the same directory as your *docker-compose.yml* file.
9393
94+
Visual Studio auto-generates the files *docker-compose.vs.debug.g.yml* or *docker-compose.vs.release.g.yml* for enabling debugging the project depending on the debug configuration. You can override certain configurations by creating a file named *docker-compose.vs.debug.yml* (for the **Debug** configuration) or *docker-compose.vs.release.yml* (for the **Release** configuration) in the same directory as your *docker-compose.yml* file."
95+
9496
### Docker Compose file labels
9597
96-
In this file, you can define override-specific labels as follows:
98+
In *docker-compose.vs.debug.yml* or *docker-compose.vs.release.yml*, you can define override-specific labels as follows:
9799
98100
```yml
99101
services:
@@ -113,7 +115,7 @@ Use double quotes around the values, as in the preceding example, and use the ba
113115
114116
### Customize the Docker build process
115117
116-
You can declare which stage to build in your Dockerfile by using the `target` setting in the `build` attribute. This override can be used in both the *docker-compose.vs.debug.yml* or *docker-compose.vs.release.yml*
118+
You can declare which stage to build in your Dockerfile by using the `target` setting in the `build` attribute. This override can be used in only the *docker-compose.vs.debug.yml* or *docker-compose.vs.release.yml*
117119

118120
```yml
119121
services:
@@ -124,8 +126,6 @@ services:
124126
...
125127
```
126128

127-
> **Note:** If you do not add a *docker-compose.vs.release.yml* or *docker-compose.vs.debug.yml* file, Visual Studio generates one based on default settings.
128-
129129
### Customize the app startup process
130130

131131
You can run a command or custom script before launching your app by using the `entrypoint` setting, and making it dependent on the configuration. For example, if you need to set up a certificate only in **Fast** mode by running `update-ca-certificates`, but not in **Regular** mode, you could add the following code in **only** *docker-compose.vs.debug.yml*:
@@ -138,8 +138,6 @@ services:
138138
...
139139
```
140140

141-
> **Note:** If you do not add a *docker-compose.vs.release.yml* or *docker-compose.vs.debug.yml* file, Visual Studio generates one based on default settings.
142-
143141
## Next steps
144142

145143
For information on MSBuild properties generally, see [MSBuild Properties](../msbuild/msbuild-properties.md).

0 commit comments

Comments
 (0)