menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Deploying ...
source image

Dev

4w

read

106

img
dot

Image Credit: Dev

Deploying a NestJS and VueJS App with Dokploy

  • This article demonstrates deploying a NestJS and VueJS full stack project to a VPS using Dokploy.
  • It covers creating production-ready Dockerfiles, automating image building with Github Actions, and utilizing images in Dokploy services.
  • The tutorial assumes you have a domain and secure VPS, emphasizing VPS security.
  • The Dockerfile stages include base, builder, and runner for backend, serving NestJS with multiple functionalities.
  • The NGINX-using Dockerfile for frontend differs in the runner stage for static file serving.
  • The article details building and pushing images to a container registry with Github Actions.
  • Dokploy setup involves installing it on a VPS with Docker Swarm, linking a domain, and creating projects and services.
  • To deploy applications, one creates services with databases and defines backend services.
  • In Dokploy, deploying backend services involves providing credentials and environment variables, setting domains, SSL, and A records.
  • The article advises configuring a subdomain for API and frontend applications, considering the respective ports.

Read Full Article

like

6 Likes

For uninterrupted reading, download the app