this post was submitted on 15 Jun 2023
-14 points (20.8% liked)

Selfhosted

40355 readers
341 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
 

I'm trying to get back into self hosting. I had previously used Unraid and it worked well to run VMs where needed and Docker containers whenever possible. This biggest benefit is that there is an easy way to give each container it's own IP so you don't have to worry about port conflicts. Nobody else does this for Docker as far as I can tell and after trying multiple "guides", none of them work unless you're using some ancient and very specific hardware and software situation. I give up. I'm going back to Unraid that just works. No more Docker compose errors because it's Ubuntu host is using some port requiring me to disable key features.

top 17 comments
sorted by: hot top controversial new old
[–] meldrik@lemmy.wtf 9 points 1 year ago

Got to disagree. Remember to enable “nesting” in your container, when running Docker.

In Proxmox you give your LXC container an IP and then you use ports in Docker for you Docker containers.

Unless I really have to use Docker, I install each service in an LXC container.

[–] FalseDiamond@feddit.it 7 points 1 year ago (1 children)

Proxmox doesn't really do Docker containers well (yet, or maybe will at all). It does do LXC (both of those are OCI containers at heart), but that's not as well supported or as versatile as Docker/Podman. I'm more than sure Unraid is great at what it does, but it's not a VMWare killing virtualization solution in production like Proxmox is with its great support for redundancy, versatility and relative ease of use if you come from a Linux background. OTOH Proxmox is not Portainer. It's for VMs and VM-like containers, at least for now. Supposedly kernel 6.something helps a lot with OverlayFS support in nested containers, but I can't go to bleeding edge kernels in production to test that. Still, are you sure you need an IP per container?

[–] johnnixon@rammy.site 2 points 1 year ago (2 children)

Pihole seems pretty unhappy about sharing an IP address/ports with it's Ubuntu host, so yeah, I'm set on giving it it's own IP.

[–] FalseDiamond@feddit.it 2 points 1 year ago (1 children)

More than fair. I do have a Proxmoxy solution if you want it, which is to run it as an LXC, but it does seem that something more container-oriented may be your best bet rather than sticking with proxmox if you don't need the extra stuff it offers.

Here's an absolutely incredible resource when it comes to home running Proxmox LXCs: https://tteck.github.io/Proxmox/

Pihole is offered (spelled Pi-hole), as well as a ton of other useful services.

[–] demosthenz@sh.itjust.works 2 points 1 year ago

Cheers for that link! Fair bit of useful info there

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

Is that your only problem? Or do you have more examples? Because I'm guessing this is the issue then:

https://forum.openmediavault.org/index.php?thread/29996-docker-pi-hole-port-53-conflict/

And it's very easy to fix that conflict.

Having each service run as a different IP sounds like a nightmare to me.

[–] johnnixon@rammy.site 1 points 1 year ago (1 children)

Yes, that was the problem. I got it running in a LXC and it worked fine. Docker remains a hot mess for 90% of what I'm trying to run.

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

So are you talking about this singular conflict that is extremely simple to fix? Do you have any other examples?

Because it most certainly isn't a reason to use an annoying distro like Unraid or absurdly put each service on a separate IP address.

[–] Osayidan@social.vmdk.ca 6 points 1 year ago

It's always about choosing the right tool for the job/use case. If all you need is a machine with some storage and to run a few services and you like how unraid works then it's the right tool.

For a lot of other use cases it's the complete opposite and unraid is seen as a pile of garbage.

[–] midnight@infosec.pub 6 points 1 year ago (1 children)

I'm confused on why you need a unique IP per VM/container. You can change the "external" port in your docker compose and be fine.

I initially tried unRAID on bare metal but hated not being able to use versions of docker I wanted and using stuff that wasn't in the community repo.

I currently run unRAID as a proxmox vm (passing through my lsi card and USB for the OS) and it works flawlessly. I didn't even have to reinstall since I passed through the necessary components it used when it was bare metal.

Ultimately, use what works best for you but I do have to disagree that proxmox/docker is inferior.

[–] myogg@lemmy.world 2 points 1 year ago

If you're prepared for headaches at the start then switching over to a ingress controller is the way to go.

95% of my services run on a single IP address over Https with a valid certificate. I can add as many services as I want without worrying about IP conflicts or invalid certificates.

[–] cnx@slrpnk.net 1 points 1 year ago

there is an easy way to give each container it’s own IP so you don’t have to worry about port conflicts

I solve this by running services on the same OS and give them Unix sockets but I'm probably unhinged.

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

I highly prefer OMV and TrueNAS Scale over Unraid... honestly, I would prefer to use almost anything else over it. I get it's probably easier for some people, but being locked into that Unraid way of doing it... ahh no, I prefer to have a bit more freedom.

load more comments
view more: next ›