DEV Community

Discussion on: Best way to turn spare laptop to server? (And turn on 24/7)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

It appears that building Nuxt on cheap droplet is a bad idea. It crashes with not enough memory.

Build on my laptop >> Upload to Docker Hub >> Download to DigitalOcean fixes it.

I am also considering spawnable stateless Docker images; with attached volume; as an alternative, but this may complicate stuff... (I have never successfully run k8s, only Google Cloud Run.)

Collapse
 
bobbyiliev profile image
Bobby Iliev

Hi there 👋,

As you are running low on ram, maybe try adding a swap file for some extra buffer:

digitalocean.com/community/tutoria...

Hope that this helps!

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

Thanks. Much better than docker-compose restart always.