How do you set up a server? Do you do any automation or do you just open up an SSH session and YOLO? Any containers? Is docker-compose enough for you or are you one of those unicorns who had no issues whatsoever with rootless Podman? Do you use any premade scripts or do you hand craft it all? What distro are you building on top of?

I’m currently in process of “building” my own server and I’m kinda wondering how “far” most people are going, where do y’all take any shortcuts, and what do you spend effort getting just right.

  • SpaceNoodle@lemmy.world
    link
    fedilink
    arrow-up
    21
    arrow-down
    2
    ·
    1 year ago

    I’m a lazy piece of shit and containers give me cancer, so I just keep iptables aggressive and spin up whatever on an Ubuntu box that gets upgrades when I feel like wasting a weekend in my underwear.

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        I get paid to do shit with rigor; I don’t have the time, energy, or help to make something classy for funsies. I’m also kind of a grumpy old man such that while I’ll praise and embrace Python’s addition of f-strings which make life better in myriad ways, I eschew the worse laziness of the all the containers attitude that we see for deployment.

        Maybe a day shall come when containers are truly less of a headache than just thinking shit through the first time, and I’ll begrudgingly adapt and grow, but that day ain’t today.

  • clavismil@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    1 year ago

    I use debian VMs and create rootless podman containers for everything. Here’s my collection so far.

    I’m currently in the process of learning how to combine this with ansible… that would save me some time when migrating servers/instances.

  • EmptyRadar@kbin.social
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    After many years of tinkering, I finally gave in and converted my whole stack over to UnRAID a few years ago. You know what? It’s awesome, and I wish I had done it sooner. It automates so many of the more tedious aspects of home server management. I work in IT, so for me it’s less about scratching the itch and more about having competent hosting of services I consider mission-critical. UnRAID lets me do that easily and effectively.

    Most of my fun stuff is controlled through Docker and VMs via UnRAID, and I have a secondary external Linux server which handles some tasks I don’t want to saddle UnRAID with (PFSense, Adblocking, etc). The UnRAID server itself has 128GB RAM and dual XEON CPUs, so plenty of go for my home projects. I’m at 12TB right now but I was just on Amazon eyeing some 8TB drives…

  • Krafting@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Proxmox, then create LXC for everything (moslty debian and a bit of alpine), no automation, full yolo, if it break I have backup (problems are for future me eh)

    • arkcom@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I used to do the same, but nowadays I just run everything in docker, within a single lxc container on proxmox. Having to setup mono or similar every time I wanted to setup a game server or even jellyfin was annoying.

    • wasney@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Mostly the same. Proxmox with several LXC, two of which are running docker. One for my multimedia, the other for my game servers.

  • augentism@thaumatur.ge
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 year ago

    Right now, I just flash ubuntu server to whatever computer it is, ssh and yolo lmao. no containers, no managers, just me, my servers, and a vpn, raw dogging the internet lmao. The box is running a nas, jellyfin, lemmy, and a print server; the laptop a minecraft server, and the pi is running a pihole, and a website that controls gpio that controls the lights. In the pictured setup i dont have access to the apartment complex’s router, so i vpn through a openvpn server i setup in a digitalocean server.

    i didnt even know what a container was until i setup the lemmy server, which i just used ansible for.

    i still dont really know what ansible is.

  • entropicshart@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    I run unraid on my server box with a few 8tb hdd and nvme for cache. From there it is really easy to spin up Docker containers or stacks using compose, as well as VMs using your iso of choice.

    For automation, I use Ansible to run one click setup machines; it is great for any cloud provider work too.

  • ppp@lemmy.one
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Debian + nginx + docker (compose).

    That’s usually enough for me. I have all my docker compose files in their respective containers in the home directory like ~/red-discordbot/docker-compose.yml.

    The only headache I’ve dealt with are permissions because I have to run docker as root and it makes a lot of messy permissions in the home directories. I’ve been trying rootless docker earlier and it’s been great so far.

    edit: I also use rclone for backups.

  • philip@kbin.chat
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    I use the following procedure with ansible.

    1. Setup the server with the things I need for k3s to run
    2. Setup k3s
    3. Bootstrap and create all my services on k3s via ArgoCD
    • redcalcium@c.calciumlabs.com
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      People like to diss running kubernetes on your personal servers, but once you have enough services running in your servers, managing them using docker compose is no longer cut it and kubernetes is the next logical step to go. Tools such as k9s makes navigating as kubernetes cluster a breeze.

  • saplyng@kbin.social
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    I’ve set up some godforsaken combination of docker, podman, nerdctl and bare metal at work for stuff I needed since they hired me. Every day I’m in constant dread something I made will go down, because I don’t have enough time to figure out how I was supposed to do it right T.T

  • jsqribe@feedly.j-cloud.uk
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    If doing a fresh server external, I’d go for debian as base(don’t need to update it too often + stable)

    For apps it’s mostly docker-compose to set up portainer/nginx-proxy then from ther just manage the rest from portainer/nginx-proxy web-ui. ony log on the server for the occasional docker updates / pruning for space.

    I see a lot of guys going the full kubernetes route and it’s something I’m hoping to get into at some point but it seems like a lot to unpack for now.

  • entropicshart@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I run unraid on my server box with a few 8tb hdd and nvme for cache. From there it is really easy to spin up Docker containers or stacks using compose, as well as VMs using your iso of choice.

    For automation, I use Ansible to run one click setup machines; it is great for any cloud provider work too.