How to host a single docker-compose app for my friends ? reddit / selfhosted ---------------------------------------------------------------------- lythandas · 2023-09-30 10:45 I'm very fond of self hosting, I have my own home server with dozens of containers runnings, and some of my no-techies friends are really interested in some of those services. As I am not willing to host them on my own server, what would be a good way for them to host a single or a couple of containers in the cloud ? I'd of course help them set this up but I don't know what's possible, feasable and sensible. I was thinking maybe something like AWS Fargate or Digital Ocean droplets, and s3 bucket for the data, what would you advise ? ---------------------------------------------------------------------- thekrautboy · 2023-09-30 10:50 Simply rent a cheap VPS in the $5/month range and do whatever you want on it. Tons of discussions here already exist on what good but affordable providerd are, depends a whole lot on the region of course. Lowendtalk.com can also be helpful. Or look at Oracle "Free" Cloud offers. ---------------------------------------------------------------------- ElevenNotes · 2023-09-30 10:51 RPi and a shell script to deploy. Use Alpine Linux as docker host in read only mode so they can't break your initial config. Add wireguard so you can manage their devices. ---------------------------------------------------------------------- Murky-Sector · 2023-09-30 11:44 I would deploy on a small server in ec2. I would avoid platforms like fargate (ecs) for the sake of simplicity and occams razon. If the app is small just deploy with docker compose. ---------------------------------------------------------------------- kObaremu · 2023-09-30 15:48 For private usage I would not recommend ec2/aws or gcp or azure services. They can quick generate a lot of costs if you are not careful. Also it is quite expensive. A VPS from other providers like others mentioned cost 5$/month and no additiona/hidden costs like ebs, backup and so on. Of course this is only for private. Hosting for enterprise is an other topic, there aws can be a good choice. ---------------------------------------------------------------------- ocyhc · 2023-09-30 15:52 Leaving the subject on where you host it, what about who's responsible for that ? If the server goes down / data is corrupted, who handle this ? You, or your no-techies friend ? You may want to define this before something happens, and make sure you have backup, this could avoid some future conflicts with your friends :) ---------------------------------------------------------------------- zekrysis · 2023-09-30 16:51 be wary of oracle. They are known for nuking their free tier vps without warning and will not provide support ---------------------------------------------------------------------- thekrautboy · 2023-09-30 16:56 Oh i know, i dont use it myself and also, fuck Oracle in general anyway. But the Oracle "free" tier VPS is a very common recommendation around here so i just mentioned it because someone else would have either way. ---------------------------------------------------------------------- opensrcdev · 2023-09-30 21:44 * Create Linux VM on Linode or Digital Ocean * Install Docker Engine & Docker Compose * Create Docker Compose file * Deploy the Docker Compose stack * (optional) Set up container monitoring * Periodically (weekly) check for updated container images ---------------------------------------------------------------------- PaulEngineer-89 · 2023-10-02 10:55 Umm for a single app this all seems ridiculous. I would just run the app on your existing Docker container with Tailscale. I’d serve it on 443 or 80 depending on if you need/want SSL or not then turn on the funnel. That way it appears on the public internet as machine.tailnet.ts.net. If you want SSL end to end load caddy and serve/funnel caddy instead but you’ll have just one application that you reverse proxy to on 443. ---------------------------------------------------------------------- Xpli · 2023-10-02 12:07 Tailscale all the way for this. Been using it for a week, just built my home lab. Works amazing. ---------------------------------------------------------------------- lythandas · 2023-10-02 12:58 Yeah I would probably have to do all the techy stuff of course, and provide backup and technical support as well. I also wanted them to have each there own solution, not a mutual solution. Of course that would complicate things a bit, but also isolating each friends completely. ---------------------------------------------------------------------- shiftyduck86 · 2023-10-02 22:45 I know this is self hosted but depending on what they want to host as non technical friends this might be better https://www.pikapods.com ---------------------------------------------------------------------- lythandas · 2023-10-03 07:43 Ah this looks really nice ! That's probably what I would offer them if I had more time and motivation to offer this kind of solutions but this sounds great ! Thanks !