Hi Piotr, as your explanation can’t we able to pull docker images from our local PC? Means we always have to push our local image to docker hub and then pull it in our Ubuntu server docker container. Please clear this point with proper explanation.
6 лет назад
Great, thanks for the introduction to Docker & nginx.
You can include Nginx in your docker image, however, you should rather run it externally e.g. install Nginx on the VM that will move the incoming traffic via reverse proxy to the docker container.
You need some real HTTP server, on top of your internal infrastructure (services). You could also expose it via container (e.g. while using Rancher or Kubernetes).
This was a good start but is incomplete. Now I'm left wondering "How do I publish this mvc app we created locally to my own docker repo, and deploy it to the server?" I'm completely new to Docker, so while it was cool to see your sample app running - I'm not sure what to do with my own project.
Hi, please take a look at my latest video and article piotrgankiewicz.com/2017/07/09/hosting-docker-images-on-azure-container-registry/ - if something would be still unclear just let me know :).
I'll do that, thanks. I just managed to figure out how to push/pull using my own Docker repo. I jumped on an S3 instance I already had running and pulled/ran it there. It all works! Very, very cool. Thanks for the great intro!
nginx return 404 when my asp net core app redirects the URL for example, asp net core is on localhost:5000, and it will redirect to login page if you are not logged in (localhost:5000/login) when I access it via public IP 10.8.8.1, it will redirect to 10.8.8.1/login and Nginx return 404 anybody know how to fix this ?
Excellent tutorial, everything works perfectly in my ubuntu 20 VPS
@Piotr Gankiewicz
I am really thankful to you. I got success on my first deployment for your video. May Allah bless you 😊
Tnx, finally found this howto! Q: Thought about running nginx inside the same container... (?)
Very useful.
I can't wait for more such a good stuff
Thank you! :)
Dzięki za ten filmik ! ;)
Proszę bardzo ;).
Hi Piotr, as your explanation can’t we able to pull docker images from our local PC? Means we always have to push our local image to docker hub and then pull it in our Ubuntu server docker container. Please clear this point with proper explanation.
Great, thanks for the introduction to Docker & nginx.
You're welcome!
Do you have a version of this using Apache HTTP server instead of Nginx?
Thank you sir, for sharing your knowledge
Спасибо!
Is it possible to add Nginx to the Docker container?
You can include Nginx in your docker image, however, you should rather run it externally e.g. install Nginx on the VM that will move the incoming traffic via reverse proxy to the docker container.
Why install nginx in the VPS itself? Doesn't it kind of ruin the whole point of managing things in containers?
You need some real HTTP server, on top of your internal infrastructure (services). You could also expose it via container (e.g. while using Rancher or Kubernetes).
Hm, but why didn't you just fetch a nginx image from dockerhub and run it as a container?
Like I said - you can do it, e.g. run Nginx via Docker or even better through Rancher or as a typical service.
Can you please help nginx is not working with the docker
This was a good start but is incomplete. Now I'm left wondering "How do I publish this mvc app we created locally to my own docker repo, and deploy it to the server?" I'm completely new to Docker, so while it was cool to see your sample app running - I'm not sure what to do with my own project.
Hi, please take a look at my latest video and article piotrgankiewicz.com/2017/07/09/hosting-docker-images-on-azure-container-registry/ - if something would be still unclear just let me know :).
I'll do that, thanks. I just managed to figure out how to push/pull using my own Docker repo. I jumped on an S3 instance I already had running and pulled/ran it there. It all works! Very, very cool. Thanks for the great intro!
Happy to hear that!
Thanks.
How connect through https?
Nieładnie mieć takie samo hasło w kilku kontach ;)
I don't have Automated builds feature
It looks like it became a paid service...
How do I connect to a database on production?
You can just provide a connection string/IP address in the configuration file and that's all.
@9:19 Kestrel does support https
That's correct, my mistake. However more advanced features such as load balancing must be handled by a separate HTTP server.
nginx return 404 when my asp net core app redirects the URL
for example, asp net core is on localhost:5000, and it will redirect to login page if you are not logged in (localhost:5000/login)
when I access it via public IP 10.8.8.1, it will redirect to 10.8.8.1/login and Nginx return 404
anybody know how to fix this ?
docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-3.0