You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
93
93
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
+
94
96
### Docker Compose file labels
95
97
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:
97
99
98
100
```yml
99
101
services:
@@ -113,7 +115,7 @@ Use double quotes around the values, as in the preceding example, and use the ba
113
115
114
116
### Customize the Docker build process
115
117
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*
117
119
118
120
```yml
119
121
services:
@@ -124,8 +126,6 @@ services:
124
126
...
125
127
```
126
128
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
-
129
129
### Customize the app startup process
130
130
131
131
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:
138
138
...
139
139
```
140
140
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
-
143
141
## Next steps
144
142
145
143
For information on MSBuild properties generally, see [MSBuild Properties](../msbuild/msbuild-properties.md).
0 commit comments