Menu

Deploying a Go + Vue SaaS on one VPS with Traefik and Let's Encrypt
πŸ“°

Deploying a Go + Vue SaaS on one VPS with Traefik and Let's Encrypt

DEV Community: goΒ·Benjamin TouchardΒ·about 19 hours ago
#Hqw7E3wG
#devtogo#devto#dev#docker#compose
Reading 0:00
15s threshold

A SaaS that compiles into one binary does not need a deployment platform. It

needs a server, a proxy that gets certificates, and a backup you have

restored at least once.

Here is the complete setup, in the order you would actually do it.

What you are building

Internet β”‚ :80 / :443 β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β” Let's Encrypt certificates, HTTPβ†’HTTPS β”‚ Traefik β”‚ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β”‚ docker network "traefik" β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β” one process: API + embedded Vue app + job worker β”‚ app β”‚ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β”‚ β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β” not exposed to the internet β”‚ postgres β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Enter fullscreen mode

Exit fullscreen mode

Two containers you wrote nothing for, one that is your product. A 1 vCPU /

2 GB server runs this comfortably at the start.

Step 1: the server and DNS

Any provider works; for EU data residency, Hetzner, Scaleway and OVHcloud are

the usual answers.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.