Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

VSTS publish project using Docker

$
0
0

Hi,

I recently tried to use docker on my VPS server (Debian stretch) to  publish my asp project.

I have three containers linked by docker-compose :

  • my asp core project + kestrel
  • nginx exposing my project to port 80 using the reverse proxy system from port 5000 of Kestrel
  • postgres as my dabatase engine

Everything works well thanks to many tutorials.

My question concerns with the VSTS part, in the CI/CD pipeline : what should I do to update my docker containers on my server ?

  • should I use the classic 'copy files over ssh' to update my asp project published directory on my distant server, then the docker container using this directory will automatically update the provided web site ? Then play a 'docker-compose build' and 'docker-compose up'  to make modifications availables ? (It works but it is a good practice ?) 
  • should I add an additional 'docker' task at the end of my CI/CD pipeline ? What that task should do ?

I'm new to Docker, I need help to that point

Thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>