DEV Community

Cover image for Deploy multiple apps on a single VPS with Docker

Deploy multiple apps on a single VPS with Docker

Lukas Mauser on September 23, 2024

The cost of virtual private servers (VPS) is low. You can rent a small box for about $5 per month. (Here you'll find some cheap VPS providers) You...
Collapse
 
code42cate profile image
Jonas Scholz

Coolify is also pretty cool

Collapse
 
wimadev profile image
Lukas Mauser

Thanks for sharing! 🙏🏻

Collapse
 
beliot profile image
Kipruto Bett

Dokploy is comparable to Vercel and Netlify

Collapse
 
wimadev profile image
Lukas Mauser

Good one!
Yeah, UI looks pretty similar

Collapse
 
code42cate profile image
Jonas Scholz

Any idea how that compares to coolify?

Collapse
 
mannuelf profile image
Mannuel

Really cool to see this method gaining traction, I’ve been using Træfik on Hostinger VPS to deploy my side projects. Its great fun.

Collapse
 
wimadev profile image
Lukas Mauser

Traefik-Docker combi is a great choice! :-)

Collapse
 
taweechai_maklay_6b4c5d8b profile image
Taweechai Maklay

such an info!, thank you very much for sharing.

Collapse
 
wimadev profile image
Lukas Mauser

You are very welcome! :-)

Collapse
 
soor profile image
Leon Domajnko

Hi, thank you for this post. I have a problem, and I would like to know, if you have a solution. I have set up a Ubuntu server, where I would like to run Mattermost server and Immich server. If I set them up only one or another, it's working great. But when I set up both of them at the same time, I get connection issues. Even they are both idle, it takes about 30 seconds to connect to one or another, and they are not usable.
I have installed Immich with Docker compose, and Mattermost with Mattermost Omnibus.
Do you have a solution?

Collapse
 
wimadev profile image
Lukas Mauser • Edited

Sounds like your server might not be strong enough to handle both. Immich and Mattermost seem to be quite heavy on RAM. From what I found, Immich recommends 6GB, Mattermost recommends min 2GB. Very likely they allocate a big portion of these resources even in idle state.
Solution might be upgrading to a bigger server or running 2 servers.

Collapse
 
soor profile image
Leon Domajnko

Yes, the server wasn't strong enough. I have changed to a more powerful server, and now, everything works fine.
Thank You

Collapse
 
userof profile image
Matthias Wiebe

Right!! 🏠 Why have 15 apps on 15 servers when you can juggle 15 apps on one server? Just need to be prepared, if one app decides to play diva and hog all the CPU and RAM. 🎭
Anyhow - what are the preparations for that case?

Collapse
 
wimadev profile image
Lukas Mauser

A good point to start is to limit resources with Docker.

If nothing else helps, jump on the server and try to shut down the bad actor ;)

Collapse
 
mayankrai045 profile image
Mayank

It's really awesome.

Collapse
 
keyboardinterrupt profile image
KeyboardInterrupt

I did not know about sliplane.io/ It sounds interesting and I will check it out eventually! TY

Collapse
 
raulpenate profile image
The Eagle 🦅

Lovely! Thanks!