-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.vscode.yml
31 lines (29 loc) · 1.18 KB
/
docker-compose.vscode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: '3'
services:
resilience.webapp.vscode:
image: kdcllc/dotnet-sdk-vscode:5.0-focal
# Azure Key Vault Authentication global tool
# dotnet tool install --global appauthentication --version 1.2.2
# run this tool first then check the configuration
# docker-compose -f ./docker-compose.vscode.yml config
environment:
- MSI_ENDPOINT=${MSI_ENDPOINT}
- MSI_SECRET=${MSI_SECRET}
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_HTTPS_PORT=8001
volumes:
- ..:/workspace
- ~/.ssh:/root/.ssh-localhost
# Forwards the local Docker socket to the container.
- /var/run/docker.sock:/var/run/docker.sock
# kubernetes
- $HOME/.kube:/root/.kube-localhost
# dotnet dev-certs https -ep C:\Users\Root\AppData\Roaming\ASP.NET\Https\WebApp30.pfx -p fea04367-1bda-4cde-8989-2d1e06dfa48d
- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
ports:
- "8000:80"
- "8001:443"
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity