this post was submitted on 28 Jun 2023
5 points (100.0% liked)

Selfhosted

39937 readers
377 users here now

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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. 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.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Or maybe a two click solution? :)

top 14 comments
sorted by: hot top controversial new old
[–] Disregard3145@lemmy.world 2 points 1 year ago (4 children)

Self hosting what?

In general

  1. Install docker
  2. Copy and paste docker run commands from the getting started guide
  3. Learn from mistakes
[–] aeternum@kbin.social 1 points 1 year ago

It's so easy to self host these days. I remember when you'd have to fuck around with Apache configs and fuck around with app config files etc. Now you just run docker. It's so great these days!

[–] HeavyRaptor@lemmy.world 1 points 1 year ago

I agree but use docker-compose instead!

[–] mr_nEJC@lemmy.world 1 points 1 year ago (1 children)

Also learn how to translate docker commands to docker-compose.yml

[–] snekerpimp@lemmy.world 1 points 1 year ago

docker-compose helped me wrap my head around docker. I can use run commands now, but prefer to either modify a compose file or create my own to spin things up.

[–] sentient_loom@kbin.social 0 points 1 year ago (2 children)

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?

[–] soft_frog@kbin.social 1 points 1 year ago

Docker is basically a virtual machine image you write your software in. Then when you run the software you don’t need to worry about compatibility or having the right dependencies installed, it’s all included in the docker image.

Think of Docker as being Nintendo cartridges that you can take to any friends house, plug them in, and play. Servers can run more than one Docker container.

The approach greatly simplifies writing code and having it work on your server, reduces errors, and adds a layer of security.

[–] TooTallSol@kbin.social 1 points 1 year ago

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)

[–] hitagi@ani.social 1 points 1 year ago (1 children)

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.

[–] betternotbigger@lemmy.world 1 points 1 year ago

This is how I got a career in Software Engineering, literally had a strong motivation to build a clan website for my Counter-Strike 1.6 crew and I just ended up learning by maintaining self-hosted websites, forums, and voip. Kept doing it over and over by building other projects and then realized people pay for this skill...

[–] zaggynl@lemmy.world 0 points 1 year ago* (last edited 1 year ago)

You could go through the following route:

  • purchase something like a small Synology NAS and learn how to set up the networking/firewall bits
  • buy/repurpose a used desktop/laptop, install something like yunohost/unraid
  • buy parts for your own server, put it together, use the same own server but install proxmox, setup VMs/containers
  • use the same own server but install debian, play around with docker/docker-compose/ansible

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

  • install iphole on a VM/PC/raspberry pi that is connected to your home LAN
  • configure your PC or router to use the pihole host as DNS server
  • test various websites you know that have ads before and after using pihole

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.

[–] PixelatedSaturn@lemmy.world 0 points 1 year ago (1 children)

What about renting a server and running it there?

[–] isgleas@lemmy.ml 1 points 1 year ago

So you "self"host elsewhere?