How to deploy web application having angular 6 as front end, Asp dot net core on backend and SQL server as database on nginx using docker - sql-server

I have web application which uses angular 6 on client side,asp .net core on backend and sql server as a database.
I want to deploy this web apllication on nginx server using docker.
I have installed docker on windows and created nginx container also,but I dont know how to map host application to container and how to serve application.
Note : operating system is windows.

Use Docker-compose (https://docs.docker.com/compose/). You can connect your containers via extra_hosts and start your app with one command

Related

Host React App using docker & windows server

i want to host my react app with use of docker and windows server. So that other users on my LAN will be able to visit a static ip and see the application hsoted there.
Is there anyone out there who did it before ?

Why my docker image does not want to deploy on azure web services?

i have an issue with deploying Docker container to Azure Web Services, it is showing only for this whole time:
Azure view
Do you have maybe an idea why is it like that? This is my docker file:
Dockerfile
And im doing those steps: first programming, then pulling to github, then using Docker Image:Build Image, and then using command:
docker pull xxxx/xxxx:latest
And waiting for result, but it is not changing anything, i have the basic plan, so i cannot use better plan, im using Docker Hub service
Azure view
And these are the settings
Just a wild guess, but have you tried
docker push xxxx/xxxx:latest
this will upload your docker image to the registry so that azure can then download your image.

Deploy an Asp.net core web api to IIS but can't access by other computer using IP:{port}/api/{controller}

I wish to deploy an asp.net core web api to IIS on a windows server. On
that windows server the api can be accessed using http://localhost:5000/api/values.
But on another computer it can't be accessed using http://MyWebsiteIp:5000/api/values.
Chrome says
Can't access the website,ERR_CONNECTION_TIMED_OUT
And the firewall I have is closed so it doesn't work too. The api connects with a SQL Server Database and when I use VS debug on my commputer IIS Express the CRUD function can work using http://localhost:53450/api/{controller}.
But when I deploy to IIS on windows server it doesn't using http://localhost:5000/api/{controller}. I have copied the Database to Windows Server and placed it in the same path with my computer.
Could you help me ?

how can I deploy/publish my asp.net MVC application to online

how can I deploy/publish my asp.net MVC application made in visual studio 2015 .net version 4.5 ,and sql server database 2016 database using localhost (.) with windows authentication ...to online ..so it can be accessed to everyone ....with code updations and sql server edition..thank you
You can host your application using IIS. IIS can be setup in any machine.
Steps :
Install IIS
Open IIS manager by entering inetmgr in Run(win+R)
Add website by browisng to its location to the published website location. (Hope you know how to publish a website in visual studio)
Edit the web config file to configure the sql server credentials(Sql db could be hosted separately or in the same machine)
Right click the website in IIS Manager and click start.
Click browse to view the website
You could either access the site by localhost:portnumber or by specifying IP:port number in settings of the website in IIS manager
You can access the website from mobile or external devices if you select public IP for your website. Incase you're connected to a local network, then the website could be accessed only from within your work place. Discuss with your network admin about exposing your server to public by providing a public IP address, if you're on local network.
Feel free to revert if you have more doubts.
If you have a VPS or DS us can use this Article it teaches localy but it is same with real VPS or DS
Also if have a Host you should publish your project on your system and upload it to your Host Provider and make backup of your SQL Server Database and set your host provider IP in Web.Config.

Connect database from asp.net mvc hosted in a virtual machine

I'm trying to host an app made in asp.net mvc 4. I've installed a virtual machine (Windows Server 2008) and then I've installed IIS server configured for that. I've got to deploy the app but logically I have a problem. My app uses SQL Server as database. So, when I try to log in to my app, the system is waiting until it shows me an error message. Logically I have not configured the database connection to handle data from the server. My question is, how do I have to configure from my IIS server in the virtual machine where I have hosted my app to connect to my SQL Server database?
Thanks!

Resources