• 0 Posts
  • 110 Comments
Joined 8 months ago
cake
Cake day: February 15th, 2025

help-circle


  • HelloRoot@lemy.loltoSelfhosted@lemmy.worldAWS is having a bad day
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    4 days ago

    For your personal use, you don’t need an enterprise setting. It’s just a simple compose file that you run.

    You can host a registry in pull through mode, so you still have all the images you use locally, but if it’s not in your registry yet, it pulls it from docker hub or whatever.

    The only pain point is that a single registry can’t do both. So if you want to push your own docker images AND have a “cache” of stuff from docker hub, you need to run two registries in two different modes. And then juggle the url’s.


  • HelloRoot@lemy.loltoSelfhosted@lemmy.worldAWS is having a bad day
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    4 days ago

    I have just this (which ironically won’t work now cause docker hub is down)

    services:
      registry:
        restart: always
        image: registry:2
        ports:
          - 5000:5000
        dns:
          - 9.9.9.9
          - 1.1.1.1
        volumes:
          - ../files/auth/registry.password:/auth/registry.password
          - registry-data:/var/lib/registry
        environment:
          REGISTRY_STORAGE_DELETE_ENABLED: true
          REGISTRY_HEALTH_STORAGEDRIVER_ENABLED: false
          REGISTRY_HTTP_SECRET: ${REGISTRY_HTTP_SECRET}
          REGISTRY_AUTH: htpasswd
          REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
          REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.password
          # REGISTRY_PROXY_REMOTEURL: "https://registry-1.docker.io/"
    
    volumes:
      registry-data:
    

    I don’t even remember how and when I set it up. I think it might be this: https://github.com/distribution/distribution/releases/tag/v2.0.0

    Recently somebody has created a frontend, which I bookmarked but didn’t bother to set up: https://github.com/Joxit/docker-registry-ui









  • I recently set up ghost on a regular VPS and it sends “internal” emails like 2fa and invites directly from the docker container as far as I can tell.

    The sender is the server domain (and ip). (Which btw. gets flagged as spam in my case because I use that domain with tutanota…)

    Only bulk/userfacing emails go through mailgun, as far as I can tell, but havent tested this yet in detail.

    Maybe that helps you in debugging.



  • I wanted to set up a kubernetes cluster and bought 2k worth of hardware, which ended up wasting away in a box for 3 freaking years. I would occasionally get it out on a free weekend, waste 10 hours and then give up cause I had more fun things to do on a weekend. Every time I attacked the project, I had to start from scratch because of updates and me forgetting everything by then. Months passed, then years.

    Eventually I abandoned the idea of kubernetes and just set it up a single node with dokploy and the next time I felt like it I added another node in swarm mode and so on.






  • The answer is probably no but I wanted to ask as a sanity check: does this setup require an internet connection after the initial setup?

    My family asked me to set up security cameras at my grandmas place, which has no internet and they don’t want to pay monthly.

    The idea is that family will visit and check the recordings regularely to see whether the services we hired do their job and not abuse my demented grandma.

    I’m thinking of:

    • a rpi/minipc that can do it’s own hotspot
    • a huge ssd slapped onto it
    • web interface that visitors can log into with a password
    • 2-3 wifi cameras that connect to it