Deploying a platform

Posted by twistedproton@reddit | sysadmin | View on Reddit | 8 comments

I’ve been lurking here for a few years, and this is my first question.

We’ve built a platform for a healthcare company consisting of a mobile app, an admin dashboard, and an API. The API and dashboard will be deployed under subdomains like:

api.company.com

admin.company.com

The challenge is that the company has provisioned the VPS inside their internal network (i.e. it has a private IP like 192.168.x.x). I know I can access it via VPN, and we’re using Dokploy to manage deployments.

My question is: how would you install and run Dokploy in this setup while still routing traffic from the public internet to the internal server?

I assume their sysadmins already have a solution, but I’d like to understand how I would approach this myself.

During development, we hosted everything on a Hetzner VPS, so it was straightforward. Dokploy requires port 3000 for initial setup, which can be disabled after assigning a custom domain.

This leads to a few additional questions

How would we handle SSL certificates, given that the server cannot communicate externally with Let’s Encrypt?

We also need to send emails from the applicatio how can we route outgoing mail traffic without turning the internal VPS into a mail server?

One approach Ive considered is using a load balancer with a public IP to route traffic to the internal server, but I’d appreciate a deeper discussion on possible architectures and best practices. where are the footguns and gotchas