selfhosted

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

FooBarrington, in Kubernetes? docker-compose? How should I organize my container services in 2024?

I am happy with my simple docker-compose setup - one root folder with one subfolder per project containing the compose file and any configuration mounted into the container. Traefik automatically exposes all services I want under a well-known URL using a single line in each compose file. Watchtower updates the containers.

This has been running stable for over two years with probably 2-3 reboots in between. If my current NUC ever breaks I’ll set it up again using Podman instead of Docker, but aside from that I couldn’t be happier!

nopersonalspace,

This seems like a sensible choice, but it would be a bit messy for multi-node which is the direction I’m heading in

possiblylinux127, (edited ) in Intel N100 good enough for 1Gbits internet ?

Honestly I’m a big fan of openWRT as it can give very good performance on cheap and used hardware.

I’ve never used it on amd64 but it may be worth a shot.

StopSpazzing,
@StopSpazzing@lemmy.world avatar

Is there a good gui suggestion?

possiblylinux127,

It comes with a fairly extensive GUI

StopSpazzing,
@StopSpazzing@lemmy.world avatar

Last time I used Luci gui was like 12 years ago. How has it improved since?

possiblylinux127,

I haven’t been using it for 12 years but right now the Luci GUI is the most extensive router GUI I’ve used.

JonnyJaap,

I used devices from gl iNet, the devices are good, but I find the UI of opnsense way better (compared to advance ui of openWRT) and updates are directly from opnsense.

I still have them for smaller network tests but for some reason I never got close to it. Probably another reason is that my brother uses opnsense too, if we have any issues we can ask each other for help.

lumpy, in I want to set up plex server, no windows.. any simple options?

I just got into self-hosting about a week ago and started by getting a small beelink s12 mini. Since you have an old pc you don’t need to worry about hardware for now.

To get going with the software I followed this (lemmy.world/post/6542476) lemmy post in the beginning. It took me a couple of evenings to understand some basic concepts and after getting everything going I found the recommdation for yams.media. So I wiped everything (because I decided to not encrypt the system and to go with Ubuntu 22.04.03 LTS instead of 23.10) and was supprised how quickly I had yams running again.

So just follow the guide and ask here or on the yams discord if you have any questions during the installation.

Skotimusj,

Check the compatibility with Linux but I also used Ubuntu with very little problem. It works flawlessly for me. I had no experience with Linux before this and was able to set it up with some googling and Asking ChatGPT for some useful commands. It was a fun project. The *arr suite is great.

namelivia, in How do you monitor your servers / VPS:es?

Prometheus, Loki and Grafana.

johannes,

Golden! We use the same :)

WhyAUsername_1, in Running immich, HA and Frigate on a RPi4 with Coral or on a HP Prodesk 700 g4 (Intel 8th gen)

I had a lot of freezing when I was using immich on my RPi4. May be due to ram constraints. I moved to a 7 8 year old PC that I had lying around. It’s less finicky than a Pi4.

I would advise you to go with HP and not RPi

sylverstream,

Thanks, HP it will be. When comparing Intel gens, there isn’t a massive difference between 4th and 8th gen, except the openvino detection which only works on 8th. But I can get a 4th gen for 25% of the price of a 8th gen.

Technikus5,

I’d also highly recommend the proper PC, Immich can get pretty RAM-hungry if you use the ML functions, for me that has actually caused crashes before. Granted, that was while importing roughly 20k Assets (200GB) from a Google photos takeout, but it’s still probably better to be prepared.

sylverstream,

Thanks for the insights. I’m planning to import about 1.2Tb of photos… So RAM is most important? What about Intel gen? I’ve compared 4th and 8th gen in terms of cpu speed and 4th still scores well. Depends of course on exact cpu. 4th gen can be bought here for about a 5th of the price of an 8th…

haui_lemmy, (edited ) in Why docker

Imo, yes.

  • only run containers from trusted sources (btw. google, ms, apple have proven they cant be trusted either)
  • run apps without dependency hell
  • even if someone breaks in, they’re not in your system but in a container
  • have everything web facing separate from the rest
  • get per app resource statistics

Those are just what was in my head. Probably more to be said.

Gooey0210,
  1. Even if someone breaks in, they are not a user, but root 🤝
haui_lemmy,

*in that container, not in the system

invertedspear,

Also the ability to snapshot an image, goof around with changes, and if you don’t like them restore the snapshot makes it much easier to experiment than trying to unwind all the changes you make.

haui_lemmy,

I havent actually tried that. Might need to check it out. :)

tristan, in I want to set up plex server, no windows.. any simple options?

If you’re only using it for Plex and nothing else, it probably won’t make a lot of difference which you use.

My old setup was Ubuntu running Plex as an install… if you just run a server without a gui, it’s like 3 lines to install Plex

I also have a pi as a portable setup running the docker version which works pretty well but I don’t think it will handle hardware encoding very well, but I could be wrong

Fashtas,

Yeah Ubuntu came up in a few searches, I’ll read more about that, Desktop was 25gb which was a bit excessive given the age of the PC, will look at server, ty

tristan,

Minimised Ubuntu server I think only wants like 2.5gb of space and cuts out a lot of things you’ll never use

vegetaaaaaaa, (edited )
@vegetaaaaaaa@lemmy.world avatar

Debian is another popular choice for servers (Ubuntu is based on Debian, with a few things bolted on top which are in my opinion not worth it). The default Debian installation only consumes 1-2GB disk space (just deselect any desktop environment during the installation process)

MangoPenguin, in Should I use a dedicated DHCP/DNS server hardware
@MangoPenguin@lemmy.blahaj.zone avatar

Basically, Unifi needs to know where the unifi server is, but it’s assigning the IP address to it.

Set a static IP on the Unifi server.

Ecclestoned,

Already done, but I ran into issues when I needed to change the IP or MAC.

empireOfLove2, in Should I use a dedicated DHCP/DNS server hardware
@empireOfLove2@lemmy.dbzer0.com avatar

Generally speaking, any device (“server”) hosting a “service” NEEDS to be assigned a static IP. It simplifies routing significantly and avoids random break problems because DHCP is incredibly stupid at times…

Is there any specific reason you need DHCP to assign an IP to your main hosting server vs setting it all statically?

Moving it to it’s own system will not fix the routing problem. You can probably still leave it on the USG.

You should be able to set a fixed static IP on your server, and then also statically assign that same IP to your server in your USG DHCP config- as long as they both are “thinking about” the same IP I think routing should work correctly.

If that breaks, try just assigning the static IP only from the USG side or only from the server’s side. I’m 90% sure that even if the USG does not have your server machine in it’s client list, if it sends broadcast packets to an entered IP looking for the unifi server, and the unifi server is listening on that manually set IP, they should be able to talk.

disclaimer: i am high as shit right now and this may be bullshit

Ecclestoned,

Is there any specific reason you need DHCP to assign an IP to your main hosting server vs setting it all statically?

I’ve done this. I think the real problem is if I ever change the server MAC or IP, as now the unifi server isn’t picked up by the USG, which means I can’t change the static address.

Gooey0210, in $8 Hetzner VPS, 70+ Owncast Streams, 0 Issues! - Livestream 2024-01-11

I wish hetzner had more locations, like any in asia for example 🫠

bjoern_tantau,
@bjoern_tantau@swg-empire.de avatar

I was really surprised when I learned that they have any locations at all besides Germany. I remember when they were just starting out and I spoke to Mr Hetzner himself about a support issue. Good times.

Gooey0210,

Germany and Finland! And now even maybe the states! (But not all plans for the states)

umbrella, in Why docker
@umbrella@lemmy.ml avatar

people are rebuffing the criticism already.

heres the main advantage imo:

no messy system or leftovers. some programs use directories all over the place and it gets annoying fast if you host many services. sometimes you will have some issue that requires you to do quite a bit of hunting and redoing things.

docker makes this painless. you can deploy and redeploy stuff easily and quickly, without a mess. updates are painless and quick too, with everything neatly self-contained.

much easier to maintain once you get the hang of things.

million,
@million@lemmy.world avatar

Quick addition, I think for the messy argument the way I would articulate it for folks running servers is it helps you move from pets to cattle.

shalva97, in Why docker

Life is too short to install everything on baremetal.

purplemonkeymad,

For real, at the minimum use a virtual machine.

spookedbyroaches,

Use lxc/lxd to get all of the performance benefits of docker and all the freedom of a vm

vildis, in $8 Hetzner VPS, 70+ Owncast Streams, 0 Issues! - Livestream 2024-01-11

What specs? I don’t have time to watch a 40 min video right now

ozoned,

It was in the description of the video, but it’s a Hetzner VPS with 3 cores, 4GB of ram, 80GB disk, 20TB bandwidth.

Hexarei, in Why docker
@Hexarei@programming.dev avatar

Others have addressed the root and trust questions, so I thought I’d mention the “mess” question:

Even the messiest bowl of ravioli is easier to untangle than a bowl of spaghetti.

The mounts/networks/rules and such aren’t “mess”, they are isolation. They’re commoditization. They’re abstraction - Ways to tell whatever is running in the container what it wants to hear, so that you can treat the container as a “black box” that solves the problem you want solved.

Think of Docker containers less like pets and more like cattle, and it very quickly justifies a lot of that stuff because it makes the container disposable, even if the data it’s handling isn’t.

paws,
@paws@cyberpaws.lol avatar

I ended up using Docker to set up pict-rs and y’all are making me happy I did

randombullet, in Jellyfin on a vps

You got a friend to host with?

I have an off site backup with a friend, but I’ve never tried streaming from them.

crony,
@crony@lemmy.cronyakatsuki.xyz avatar

I’m most likelly the only one among my friends who even own’s a smartphone/pc ( I live in Croatia in countryside where tech is seen as evil )

tuff_wizard,

I mean… they’re not totally wrong.

crony,
@crony@lemmy.cronyakatsuki.xyz avatar

Agreed

  • All
  • Subscribed
  • Moderated
  • Favorites
  • selfhosted@lemmy.world
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #