I am not sure how to self-host docker compose environments. Maybe somebody can help out.

I’m a software dev and not afraid of some sysadmin work.

Options I see:

  1. I see a docker-compose community app that lets you start setting things up, but haven’t investigated very much.
  2. Spin up a linux vm, pretend its not unraid and follow instructions. This is heavier-weight so I want to investigate the docker approach at least some.
  3. Individual dockers, sorta extracting each item in the docker-compose file and running them one-by-one.

I already have nginx proxy manager setup with other services, so that should be fine to expose things to the wider internet when I get that far.

  • Red@reddthat.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 年前

    We are :P

    Tiff wrote a post here on self hosting it: https://reddthat.com/post/19103

    Also nearly everyone is using docker for Lemmy and as long as unraid lets you run docker commands you should be fine.

    Docker compose is (now) part of docker. It’s a way to describe all the containers you want, and then docker goes and does it. You should 100% learn docker compose, and Lemmy already has a compose file in their repo. So you should be able to copy paste and say docker compose up -d

      • Tiff@reddthat.com
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 年前

        I write about that here: https://reddthat.com/comment/66766 and allude to our problems in the future funding post here: https://reddthat.com/post/25633

        But it’s only a 2 core, 4gb ram, and I think a 100mbit line, though I have yet to test the network throughput to its maximum.

        We average about checks 15-25% CPU usage at the moment over the past 24 hours.

        We are using Cloudflare Infront of our server to help with spikes, but honestly it doesn’t do much except for serving the images.
        This is due to the fact that lemmyui interacts via websockets and all federation are pretty much POSTs.

        Lemmy itself is very CPU and memory efficient. The biggest problems all other instances are having are database related and the inefficient nature that some of the queries are.

        In the long run, I would like to get a dedicated colo instance for the database server, which would give us enough growing room for up to 10k+ users even with the current database inefficiencies, but until we get about $200-250 per month in recurring monthly donations there will no way we can get to that.

    • blurredweasel@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 年前

      Sorry, to be clearer, I’m trying to fit this into the Unraid UI elements offering to run & manage docker. I know I could be running docker compose commands myself, but unraid doesn’t natively support that via it’s nice management page.

      I need to investigate my #1 option up above - a plugin to unraid that offers some level of compose support.

  • burndown
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 年前

    My first thought is #3. It kinda sucks but unless you spend the effort to find an appropriate lightweight VM (which has to exist, right?) and want to set up backups/ansible/etc you might have to do the legwork.

    • blurredweasel@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 年前

      Yeah, makes sense. I already run VMs for other things (Home Assistant and a general programming env one), just boring ubuntu ones though.

      I have an unnecessarily beefy system (12core + 64gb of ram), so I guess the overhead isn’t bad, just the need to maintain yet another OS.

  • ALERT
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 年前

    Nope. Waiting for an Unraid plugin :D

  • mcmxci@mimiclem.me
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 年前

    I was able to get it running using the docker-compose CA app and the official docker-compose file after some tweaking. I’m running a similar nginx reverse proxy setup and no issues with federation.

  • tko@tkohhh.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 年前

    I got it going on a DigitalOcean VPS… I thought about hosting it on my Unraid machine, but at the end of the day I wasn’t very comfortable hosting a VERY public place on my home server.

    That said, having gone through the setup, I’m sure you could get it going on Unraid. I would use Docker Compose via the Compose Manager plugin, along with SWAG or NPM.

    There are some differences in how you use Docker Compose on Unraid vs on a VM, but nothing insurmountable! If you give it a shot, let us know how it goes!