How I deploy my production stack on VPS
We can deploy applications to VPS / Cloud Instances to avail it in the public internet. When deploying for production we need some standard practices to ensure application is easy to manage. Some of the feature to consider are: Auto TLS Easy image building and deployment Rolling updates Rollback when needed Preparing VPS for deployment Setup a brand new VPS with SSH and Necessary settings example Install Docker on VPS ssh into VPS using ssh vps1.example.com install docker curl -fsSL https://get.docker.com | sudo sh Setting up Docker Context We can use docker context to configure docker client to connect to the VPS. We can create a context using: ...