Self hosting what?
In general
- Install docker
- Copy and paste docker run commands from the getting started guide
- Learn from mistakes
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Self hosting what?
In general
Okay. I keep reading about docker. What's the difference between a docker and just installing an app on rented server space?
Does each dock (?) have its own server? (Apache or nginx or whatever?)
Does each dock host a whole site, or do you have a dock for your database and a dock for your web app?
What's the difference between a docker and just installing an app on rented server space?
Functionally? Not much. But people who selfhost typically want everything on computers they own. Whether it's for learning purposes, or to not have their stuff on "someone else's computer" selfhosting usually means you're running software on computers you own, almost always within your own house.
Does each dock (?) have its own server? (Apache or nginx or whatever?)
Each docker image usually has a web server built in. The philosophy of docker is that it contains everything needed to run the app. Even a small linux OS (LibELEC or Alpine are favorites for docker images). So while you're not managing the web server in a docker image each docker image will have its own web server if web access is needed
Does each dock host a whole site, or do you have a dock for your database and a dock for your web app?
Docker the program is what runs all the docker images on a computer. Each docker image is built as per the software's developer. Some docker images will have a web app and a database combined into a single image, while others will expect a separate database server running independent of the image (It won't care if the database server is a docker image or not; just that it has access)
To be fair thats pretty much the IT gig in general, not the docker part but the rest copy/paste run commands, then learn from whatever you screw up couple of years later you might very well end up working in IT
Depends on what you want to self-host. In general, I would advise against self-hosting anything before you familiarise yourself with the basics of *nix, networking and cyber security.
You at least need to know enough to make sure that whatever you host is only available within your local network and is inaccessible from the outside.
Once that’s ensured, go nuts, experiment, learn, evolve.
In terms of how to start, really depends on your budget, what hardware you can spare, how much space you have at your place etc.
For the most basic playground it’s enough to have a raspberry pi or similar, or a very old laptop / desktop computer.
For something more swanky you can get old Dell servers (e.g. R420) online for around 100$ or so. They are quite power hungry though. Or you can get yourself a NUC and use that.
If all of this sounds like too much work, just get yourself QNAP / Synology NAS and see what it can do for you (it is way more limited in terms of options, but easier to setup and you can still have your Plex / file sharing / docker containers).
https://www.youtube.com/c/SpaceinvaderOne
This guy got me from 0 to having a bunch of useful internet facing services.
Hmm maybe Unraid with the community store? When you got unraid running its just a matter of selecting an app from the store and hop: it runs. Kinda..
If you're looking for a 2-clicks opensource solution, I've heard Yunohost ain't too bad.
Disclaimer: I haven't used it myself. I for one use Proxmox+OpnSense.
I think you should just choose whatever software or project you want to selfhost, read how to do it, and learn by doing.
I'm a complete idiot but I learned how to self host from trying to set up a Jellyfin server on my Windows desktop. Now I host game servers, Matrix with bridges, Discord bots, and this Lemmy instance that I'm in. I (re)learned how to use Linux and fell in love with it too.
It's all about reading the manual I guess.
What would be the point of self hosting then?
Generally speaking installing stuff on a raspberry pi with docker and accessing it over a vpn is pretty safe and already straightforward.
What about renting a server and running it there?
So you "self"host elsewhere?
Well, it's still selfhosting
SHaaS
SHaaS
For a two click solution: YunoHost
Disclaimer: I didn't try it out myself.
I am currently using yunohost.
I report that it works out of the box within the local network.
Is it basicly a docker alternative? I know enough to have gotten some servers running in ubuntu docker containers but if i want a lemmy instance then that would be a first time exposing it trough the web.
Is it is as simple as just opening the right port?
You could go through the following route:
If you don't have the means to get new hardware, you can use hyper-v or virtualbox for free on Windows or virtualbox/virt-manager on Linux on existing hardware.
Simple project to start with: install pihole and configure it as your DNS adblocking filter at home
While doing things like these, keep notes what you do by day, using those notes, put together your own howto manuals. Do not be afraid to fail, sleep over it and try again, don't be afraid to ask specific questions here or on other forums, IRC.
Lol its probably for me