ASP.NET Core deployment using Docker, Nginx and Ubuntu Server

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 34

  • @actek140488
    @actek140488 3 года назад +1

    Excellent tutorial, everything works perfectly in my ubuntu 20 VPS

  • @shunjidrahman6860
    @shunjidrahman6860 5 лет назад +1

    @Piotr Gankiewicz
    I am really thankful to you. I got success on my first deployment for your video. May Allah bless you 😊

  • @lollo4711
    @lollo4711 5 лет назад +4

    Tnx, finally found this howto! Q: Thought about running nginx inside the same container... (?)

  • @MrZbuj
    @MrZbuj 7 лет назад +2

    Very useful.
    I can't wait for more such a good stuff

  • @cienia8410
    @cienia8410 7 лет назад +2

    Dzięki za ten filmik ! ;)

  • @AmitPandey-ko7lj
    @AmitPandey-ko7lj 6 лет назад +1

    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.

  • @wcdeich4
    @wcdeich4 5 лет назад +1

    Do you have a version of this using Apache HTTP server instead of Nginx?

  • @devdharma3050
    @devdharma3050 5 лет назад

    Thank you sir, for sharing your knowledge

  • @rvrby2541
    @rvrby2541 5 лет назад

    Спасибо!

  • @warrenbuckley3267
    @warrenbuckley3267 6 лет назад +2

    Is it possible to add Nginx to the Docker container?

    • @PiotrGankiewicz
      @PiotrGankiewicz  6 лет назад

      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.

  • @gardc.594
    @gardc.594 6 лет назад +2

    Why install nginx in the VPS itself? Doesn't it kind of ruin the whole point of managing things in containers?

    • @PiotrGankiewicz
      @PiotrGankiewicz  6 лет назад

      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).

    • @gardc.594
      @gardc.594 6 лет назад

      Hm, but why didn't you just fetch a nginx image from dockerhub and run it as a container?

    • @PiotrGankiewicz
      @PiotrGankiewicz  6 лет назад

      Like I said - you can do it, e.g. run Nginx via Docker or even better through Rancher or as a typical service.

  • @DiyathWickramaratne
    @DiyathWickramaratne 4 года назад

    Can you please help nginx is not working with the docker

  • @VincentJenks
    @VincentJenks 7 лет назад

    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.

    • @PiotrGankiewicz
      @PiotrGankiewicz  7 лет назад +1

      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 :).

    • @VincentJenks
      @VincentJenks 7 лет назад +1

      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!

    • @PiotrGankiewicz
      @PiotrGankiewicz  7 лет назад +1

      Happy to hear that!

  • @superdoggywoofwoof
    @superdoggywoofwoof 4 года назад

    Thanks.

  • @denislopatin3100
    @denislopatin3100 6 лет назад

    How connect through https?

  • @MerrStudio
    @MerrStudio 4 года назад

    Nieładnie mieć takie samo hasło w kilku kontach ;)

  • @AzizjanAyupov_leo
    @AzizjanAyupov_leo 2 года назад

    I don't have Automated builds feature
    It looks like it became a paid service...

  • @mojizze
    @mojizze 7 лет назад

    How do I connect to a database on production?

    • @PiotrGankiewicz
      @PiotrGankiewicz  7 лет назад

      You can just provide a connection string/IP address in the configuration file and that's all.

  • @MarkLindell
    @MarkLindell 7 лет назад

    @9:19 Kestrel does support https

    • @PiotrGankiewicz
      @PiotrGankiewicz  7 лет назад

      That's correct, my mistake. However more advanced features such as load balancing must be handled by a separate HTTP server.

  • @wibisonoindrawan5756
    @wibisonoindrawan5756 4 года назад

    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 ?

    • @freakrugnir
      @freakrugnir 4 года назад

      docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-3.0