Below I will show the default docker-compose.override.yml file that was created for me when added orchestration to my ASP.NET application. This is using .NET Core 3.1. I right clicked on the project file -> Add -> Container Orchestrator Support... and the docker-compose project was added to my solution. (Obviously I chose Docker Compose in the options).
I would like to know where the variable APPDATA is being initialized so that I can understand the full path. I understand how the volumes work; I'm simply interested in knowing how and where APPDATA is initialized.
version: '3.4'
services:
myproject:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:443;http://+:80
ports:
- "80"
- "443"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:C:\Users\ContainerUser\AppData\Roaming\Microsoft\UserSecrets:ro
- ${APPDATA}/ASP.NET/Https:C:\Users\ContainerUser\AppData\Roaming\ASP.NET\Https:ro
The docker-compose. override. yml is the configuration file where you can override existing settings from docker-compose. yml or even add completely new services.
The default path for a Compose file is ./docker-compose.yml .
Docker-compose command doesn't override Dockerfile CMD.
The preferred method for configuring the Docker Engine on Windows is using a configuration file. The configuration file can be found at 'C:\ProgramData\Docker\config\daemon. json'. You can create this file if it doesn't already exist.
I know this is an old post and you probably figure it out but, APPDATA is variable built in with Windows.
If you open Windows Explorer or Run and paste APPDATA with % before and after you will get path.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With