r/VibeCodeDevs • u/Arcsviel • Oct 31 '26
Per-PR preview environments on a plain VPS with Docker Compose + Traefik (MIT)
After seeing a few threads about moving off Vercel and losing PR previews, I put together a reference setup: every pull request gets its own HTTPS hostname on one Linux server, and everything is removed when the PR closes.
What’s in it: Traefik with a wildcard cert (Cloudflare DNS challenge), a sample compose file with per-PR labels, deploy/teardown scripts that validate the PR number and SHA, and a GitHub Actions workflow that skips fork PRs.
What’s tested: per-PR routing runs in CI. What’s not: the wildcard certificate step, since it needs a real domain and public server, so try it on a throwaway box first.
Repo: https://github.com/ArcVielLouvent/stratacore-agent-examples
Disclosure: I’m building StrataCore, a tool around this same pattern, but nothing in the repo depends on it. Feedback on the security notes especially welcome.
•
u/endofthread-bot Oct 31 '26
Hey u/Arcsviel, thanks for posting in r/VibeCodeDevs! Join our Discord: https://discord.gg/t7SD4ThKuE
• This community is designed to be open and creator‑friendly, with minimal restrictions on promotion and self‑promotion as long as you add value and don’t spam.
• Please follow the subreddit rules so we can keep things as relaxed and free as possible for everyone. • Please make sure you’ve read the subreddit rules in the sidebar before posting or commenting.
• For better feedback, include your tech stack, experience level, and what kind of help or feedback you’re looking for.
• Be respectful, constructive, and helpful to other members.
If your post was removed (either automatically or by a mod) and you believe it was a mistake, please contact the mod team. We will review it and, when appropriate, approve it within 24 hours.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/silentkode26 Oct 31 '26
A vibecoder discovered feature branch preview…