• 3 Posts
  • 27 Comments
Joined 3 years ago
cake
Cake day: August 6th, 2022

help-circle
  • If that’s true, then great, and learning with cloud-native technology is perfectly fine. The critical comments were probably made because the post does not indicate that this is just an idea for production architecture or a form of learning, but rather the actual deployment that should be carried out (at least that is how I see it), which in this subreddit could be perceived as a proposal for self-hosting for private individuals (as self-hosting is associated with private individuals).


  • I would not go with managed NC, because you can’t control nothing and provider raise prices over and over. Even with serverless Nextcloud deployment, the architecture is still like LEGO, and if something will go bad or price will be too high, then you can exchange those LEGO bricks, ie. migrate from Fargate to EC2 w/ ECS, migrate from Aurora to RDS Postgres or Postgres installed on EC2 and so one.


  • I started counting, and only with Fargate two ECS tasks (with not much CPU power) and with first Aurora DB it is almost 200 USD per month (in Frankfurt). If we will add another services, the cost will be higher and higher.

    Did you learn stuff?

    Yeah, learning is great and if you will deploy it and kill it in the same day, the cost will be quite low. But if you want to really use it, it is too much, it is better to use hostable alternatives, ie Load Balancer == Haproxy, Fargate Task == Docker on EC2/VPS (even with ECS), Aurora == burstable tier RDS or DB hosted on VPS/EC2. I know, in business area, you should not host DB on EC2 or use clean Docker on EC2 (without ECS) (and that production Nextcloud deployment could be more extended, because availability and scalability is more important that saving some dollars), but in private zone, where every penny is important, it is overkill for everyday use.


  • Yes, just like I said, when running it for personal use, going with SLA 99,(9) is too expensive. As far as long we say about serverless solutions, they can be great and helpful (I can say that from both SysOps and DevOps perspective that work on many projects), but I don’t think they should be used in homelab form, as they do not provide that much customisations, and homelabs are the place where we want to experiment and have some fun, not just deploy something in a way that will “just work”.


  • Not that cheap. Both Aurora and Fargate can be pricy, so using this for personal cloud, not as business solution, is not only a overkill, but also expensive tool, that you will not fully reuse for other services. I think, in personal selfhosted area, we agree to not use that overkilled architecture (but for typical cloud deployment it is fairly simple) to cut costs massively.


  • Finally found someone who uses OpenTofu for Docker too. I saw many opinions and thinking that dropping Compose for OpenTofu/Terraform is silly, because Compose is “more native”. I use OpenTofu for Docker too, but I structured code in other way, I have a module that mimics compose in some way, but is simpler for me to use. I published module here: https://codeberg.org/cichy1173/cichyform

    I do not published my IaC, but I can show how code looks like for service:

    module "adguard" {
      source = "git::ssh://git@codeberg.org/cichy1173/mylab-opentofu.git//modules/docker_service?ref=docker_service-v1.1"
      service_name = "adguardhome"
      image_name   = "adguard/adguardhome:latest"
    
      volumes = [
        {
          host_path      = "/home/cichy/docker/adguard/adguard/conf"
          container_path = "/opt/adguardhome/conf"
        },
        {
          host_path      = "/home/cichy/docker/adguard/adguard/work"
          container_path = "/opt/adguardhome/work"
        }
      ]
      
      ports = [
        {
          internal = 53
          external = 53
          protocol = "udp"
        },
        {
          internal = 80
          external = 80
        },
        {
          internal = 443
          external = 443
        },
        {
          internal = 853
          external = 853
        },
        {
          internal = 3000
          external = 3000
        }
      ]
    
      environment_variables = []
    }
    

    I also created an Forgejo Action to run plan on stacks with this module to check if there is a new image under the tag :latest. Oh, and also I manage Adguard Home using OpenTofu, it is very powerful: https://codeberg.org/cichy1173/adguard-home-cm-repository






  • Yunohost has been recommended to me a couple of years ago and this is a software that brought me into #selfhosting.

    Thanks to Yunohost’s application catalog, I got familiar with quite a few interesting applications, learnt about their capabilities, and I still use many of them today, such as Hedgedoc and Wallabag. In addition, Yunohost makes it easy to manage domains or reverse proxies. I currently work as SysOps/SysAdmin/DevOps and when I choose to deploy an application, I opt for something I have more control over, but without yunohost I would never have stepped into this career path. I continue to use yunohost on my main server, which is a bastion of stability for me, but I test new apps and host them on a separate server. In Yunohost, on the other hand, I install the Redirect application to conveniently have access to them outside my network.


  • Not exactly. Yunohost offers solution to host services openly to the internet thanks to simplified configuration of domains (and it even offers free domains) and reverse proxy. Also it has built in email server (not client, but the server). Apps are packaged in its own format and with unique configuration, it is not just some wrapper for Docker Conpose











  • cichy1173@szmer.infoOPtoSelfhosted@lemmy.worldSelfhosting Overleaf
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 years ago

    I would guess that you need to learn more about Docker usage in general, rather than just looking for a Docker Compose file

    Yeah, I don’t really like using Docker so I always go for easier option, but my friend uses Docker a lot and also had troubles with Overleaf.

    Also, I’d like to point out that Overleaf’s hosting and pricing options are quite reasonable, especially if you’re working for a university or institution: https://www.overleaf.com/user/subscription/plans

    I don’t work for university, but I am a student that needs Latex. Overleaf free plan got really bad, even my thesis cannot be compiled now and Overleaf pricing isn’t really great. Student pricing is only for annually subscription, so it is not ideal for me.