Skip to content
Running asp.net core and sql server in docker container example.
C# Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
WebApi
.dockerignore
.gitignore
Docker_AspNetCore_SqlServer.sln
README.md
docker-compose.dcproj
docker-compose.override.yml
docker-compose.yml

README.md

Docker with Asp.NetCore & Sql Server

Running asp.net core web api and sql server in docker container example.

Steps:

  1. Go to working directory
  2. run docker-compose build
  3. run docker-compose up

You app should be running on port:52743, Verify API on http://localhost:52743/api/values

Also try connect MS SQL Server on SSMS with:

  1. Server name: localhost,1433
  2. Authentication: SQL Server uthentication
  3. Login: sa
  4. Password: Bassword@123

Refer basic docker commands : https://www.asptricks.net/2019/07/basic-docker-commands.html

You can’t perform that action at this time.