- docker-compose >= 1.27.4 (https://docs.docker.com/compose/)
- Docker (https://docs.docker.com/engine/install/)
- VSCode is optional, though the main point so...
An opinionated approach to developing applications with VSCode and docker-compose. Designed for quick startup via
git clone https://github.com/paljinov/dotnet-vscode-docker-debugging-settings.git example
cd example
code .
Then simply select Run->Start Debugging or press F5
-
Build and compose app container
docker-compose -f docker-compose.yml -f docker-compose.watch.yml up -d --force-recreate --build
-
Get a bash shell in the container running container:
docker-compose exec app /bin/bash
-
Run watcher:
dotnet watch run
-
Build and compose app container
docker-compose -f docker-compose.yml -f docker-compose.debug.yml up -d --force-recreate --build
-
Get a bash shell in the container running container:
docker-compose exec app /bin/bash
-
Run assembly:
dotnet run
-
Build and compose app container
docker-compose up -d --force-recreate --build
-
Get a bash shell in the container running container:
docker-compose exec app /bin/bash
-
Run assembly:
dotnet Example.dll
docker-compose logs -ft app
dotnet watch run
dotnet run