-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.vscode.yml
32 lines (31 loc) · 1.22 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
31
32
version: '3'
services:
# this is for the entire solution
bet.vscode:
image: kdcllc/dotnet-sdk-vscode:5.0-focal
# Azure Key Vault Authentication global tool
# dotnet tool install --global appauthentication
# 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=9001
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:
- "9000:80"
- "9001:443"
- "8001:8001" # kubernets dashboard
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity