I’m interested in hosting a small lemmy instance from my home and I already use proxmox for several services so figured I’d start there.

I got a quick test lemmy instance running on an ubuntu VM but decided I wanted to try running it in an LXC container since PVE has a great setup for those. So I tried again with an ubuntu LXC container and got that going pretty quick too. I’m wondering if running a docker container from inside an LXC container is a good idea or not. I like the idea because it seems very portable and lightweight, but I also wonder if I’m creating more overhead by doing the Russian doll thing with containers.

I’m also wondering about DNS and security. The only thing I run locally that’s accessible from the web is home assistant and I use Nabu Casa’s service for that so it was pretty idiot proof. Does anyone have any general recommendations\dos\donts for running an instance from home? I’m planning to use cloudflare for DNS but I’m kind of new to this part so looking for advice.

  • MangoPenguin@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Docker inside LXC can be a pain, it’s much easier to run it in a VM, and you usually get better performance anyways.

    A Debian VM uses like 25MB of RAM for itself, so there’s very minimal overhead. Plus VMs are more portable if that is something you need.

    Since you’re going to use cloudflare for DNS, you can just flip the switch on your subdomain and pass everything through cloudflare which will hide your real IP, and provide some protection against bots.