frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Should I learn Docker to deploy my app in VPS?

4•danver0•13h ago
for more context, my primary language is javascript, but lately i started learning Golang,in the past i only use normal hosting providers to host my nodejs apps

Comments

uberman•13h ago
Imho, yes.

Installing docker is generally simple. Docker desktop on windows or just follow the steps in the docks for linux.

Reading and using a simple dockerfile is also dead simple.

Understanding compose and port and volume mapping is a bit trickier but not daunting.

Once you have the basics of understanding a dockerfile you can switch to doing container based development in vscode and you will never go back to writing code on your host again.

Vscode is not the only ide that supports this, just the one I use most of the time. There are also docker alternatives like rancher and postman but I still use docker when doing dec work.

Good luck. Bit of beginner advice though. Take time to understand the differences between: build, up, down, stop, start

nacozarina•13h ago
for external cloud I’ve always deployed node.js docker images for aws lambda and had pleasant experience

testing your app as-a-container locally before pushing is a worthwhile check to ensure you don’t have config/startup issues

learning docker is a separate skill, yet is versatile, you can wrap anything in an OCI image

ghoshbishakh•12h ago
Should you learn - yes. Do you really need it - probably not now, but eventually yes. I use it always to set up my dev environment so that the team can have a consistent environment to work on.
codegeek•9h ago
Every developer should learn the basics of Servers, Linux, VPS hosting etc. It is not that hard especially with the amount of information that's online. You mentioned Golang. For those languages, it is even easier because you literally host a single binary on the VPS. So go ahead, learn it. The naysayers will scare you into thinking that you need someone else to do it for you but you usually don't. Not unless you are running an app with mission critical requirements and at scale.It is totally ok to host your own app on a VPS that gets a few hundred requests in a day or even more.

My suggestions:

1. Start with a specific OS on a linux box. Ubuntu is a standard one that you can just start with.

2. Install your application first without docker. If binary (e.g. Golang), you can literally copy the binary (make sure you build it for your OS on the server) and then run it either using something ike supervisor/systemd

3. Then, use a reverse proxy like Caddy in front of it for SSL and actual domain.

4. Get a custom domain from any provider and set the DNS for that domain to point to the IP address of this server.

5. If you want to get real fancy, instead of pointing d0main directly to the IP of the server, get a DNS with cloudflare and point there. Then configure cloudflare to point to the actual server (a.k.a origin server) This way, you get additional benefits like WAF, DDOS protection etc. Even cloudflare free plan offers this with some limits.

Then repeat the process in 2,3 but with docker container.

You can do all of this easily in ChatGPT etc nowadays by asking:

- I want to install a Go App on an Ubuntu VPS using systemd/supervisor and put Caddy as reverse proxy in front. Then I will want to use a custom domain where DNS is hoted with Cloudflare which ultimately points to Caddy.

It is not that hard. Not to learn at least.

aristofun•9h ago
Yes, it’s still the cheapest and easiest way to deploy small to not so small apps DIY style.

Ask HN: When has a "dumb" solution beaten a sophisticated one for you?

4•amadeuswoo•5h ago•5 comments

Ask HN: What's a standard way for apps to request text completion as a service?

47•nvader•5d ago•24 comments

Ask HN: Senior engineering mngrs: how has AI changed your day-to-day work?

26•kitetm•19h ago•4 comments

Ask HN: Best way to find chill job where I can learn and grow as a swe

33•digitdiglet•2d ago•42 comments

Are There Any Similar Sites Like Downdetector?

2•nomadfounder•11h ago•0 comments

Ask HN: Would you pay for a privacy-first social platform?

7•sammiej•12h ago•9 comments

macOS Tahoe 26.2 ships with an outdated version of Python 3.9.6

6•Gabrielfair•10h ago•5 comments

Ask HN: Should I learn Docker to deploy my app in VPS?

4•danver0•13h ago•5 comments

Ask HN: Any Microsoft employees/devs here? What's happening to Microsoft?

107•thehamkercat•4d ago•83 comments

Ask HN: Is it time for HN to implement a form of captcha?

88•Rooster61•2d ago•132 comments

Ask HN: What happened to self-hosted models?

3•curiousaboutml•18h ago•10 comments

Tell HN: Get a dying iPhone 12 mini in 2026

26•remywang•2d ago•21 comments

Implementing NaN Boxing in a Stack-Based VM

5•tracyspacy•3d ago•0 comments

Ask HN: How would you decouple from the US?

34•yawa_me_worht•2d ago•20 comments

Ask HN: How to make working in software fun again?

6•canxerian•1d ago•7 comments

Working on decentralized compute at io.net sharing what we're learning

4•plutodev•1d ago•3 comments

How to search Remote-from-Anywhere jobs

8•andrewstetsenko•15h ago•3 comments

Ask HN: What's your preferred digital payment method?

3•vednig•1d ago•21 comments

Ask HN: How do you do store-and-forward telemetry at the edge?

5•Aydarbek•3d ago•3 comments

Ask HN: Feeling irrelevant in back end. How to pivot to automotive software?

3•culopatin•2d ago•3 comments

Ask HN: Why isn't AI spawning profitable indie games?

6•eveningsun•2d ago•11 comments

Funding Opportunities with Amateur Radio Digital Communications (ARDC)

5•ARDC_73•2d ago•1 comments

I've maintained an open source task manager for 8 years

6•johannesjo•1d ago•1 comments

I built an AI agent that deploys a PR to production

3•amouehsan•2d ago•1 comments

Ask HN: Where is legacy codebase maintenance headed?

6•AnnKey•2d ago•4 comments

Amazon Prime AI overviews can't even get the basics right

43•PyWoody•5d ago•13 comments

Git analytics that works across GitHub, GitLab, and Bitbucket

3•akhnid•4d ago•1 comments

Ask HN: Have AI tools like agents affected your motivation at work?

7•SpicyNoodle•1d ago•2 comments

Ask HN: Has anyone else been struggling with search lately?

31•areoform•5d ago•20 comments

You've reached the end!