Running asp.net core web api and sql server in docker container example.
Steps:
- Go to working directory
- run docker-compose build
- run docker-compose up
Your app should be running on port:52743, Verify API on http://localhost:52743/api/values
Also try connect MS SQL Server on SSMS with:
- Server name: localhost,1433
- Authentication: SQL Server uthentication
- Login: sa
- Password: Bassword@123
Refer basic docker commands : https://www.asptricks.net/2019/07/basic-docker-commands.html