Automatically Start and Stop Containers When You Need Them with Lazytainer

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • Happy 6th Anniversary, Celebrate FlexiSpot Tech Day on Sept 7-9, Up to $200 OFF!
    bit.ly/3AjxjFg
    Dont miss the Flash Sale on FlexiSpot E7, Get $130 OFF on Sept 7th ONLY!
    bit.ly/3AH5nMY
    Save C$120 for FlexiSpot E7 on Sep.1-Sep.9 CAN site:
    bit.ly/3AhHI4m
    Get an extra $30 OFF when buy through my link
    bit.ly/3AOwN2x
    /=========================================/
    Another segment in this video is sponsored by Refurb Feed.
    🔗 dbte.ch/refurb...
    Use code: DBTECH for 10% off your next laptop purchase.
    /=========================================/
    With Lazytainer, you can have containers start up when you need them and then shut down after a specified amount of time after you're done using them!
    GitHub:
    github.com/vmo...
    Examples from the video:
    Docker Compose Example 1 (Lazy):
    dbt3ch.com/boo...
    Docker Compose Example 2 (Lazy2):
    dbt3ch.com/boo...
    Docker Compose Example 3 (Lazy3):
    dbt3ch.com/boo...
    /=========================================/
    Get early, ad-free access to new content by becoming a channel member, a Patron or signing up for the members' only website!
    ✅ / dbtech
    ✅ dbtech.fans/
    ✅ / @dbtechyt
    /=========================================/
    The hardware in my recording studio is:
    ✔ Custom PC w/ Ryzen 2600, 32GB RAM, RTX 2070, Assorted Storage
    ✔ Panasonic LUMIX G7 4K Digital Camera: amzn.to/3IGEOcb
    ✔ SAMSUNG 34-Inch SJ55W Ultrawide Monitor: amzn.to/395g9BZ
    ✔ LG 27UK650-W 27” UHD IPS Display with HDR 10: amzn.to/398pg4S
    ✔ WALI Premium Dual Monitor Stand: amzn.to/398AiqM
    ✔ Neewer Lights: amzn.to/3nZcoSX
    ✔ Light Power Supply:amzn.to/3Konpqf
    ✔ 55" Gaming Desk: amzn.to/3AkgHgw
    ✔ Sabrent USB-C Hub: amzn.to/3qFcwbV
    ✔ Das Keyboard 4 Professional: amzn.to/3G9rPxM
    ✔ Fuqido Big and Tall Gaming Chair: amzn.to/3IGegrq
    /=========================================/
    The hardware in my current home servers:
    ✔ Synology DS1621xs+ (provided by Synology): amzn.to/2ZwTMgl
    ✔ 6x8TB Seagate Exos Enterprise HDDs (provided by Synology): amzn.to/3auLdcb
    ✔ 16GB DDR4 ECC RAM (provided by Synology): amzn.to/3do7avd
    ✔ 2TB NVMe Caching Drive (provided by Sabrent): amzn.to/3dwPCxj
    ✔ TerraMaster F5-221 (provided by TerraMaster): amzn.to/3IfH2QD
    ✔ 5x6TB WD Red Plus NAS: amzn.to/3LnbPvC
    ✔ 8GB DDR3: amzn.to/3kfLTX3
    ✔ TerraMaster F4-423 (provided by TerraMaster): amzn.to/3kjUms5
    ✔ 2x8TB Seagate Barracuda Compute: amzn.to/3xBAO95
    ✔ 16GB TEAMGROUP Elite DDR4: amzn.to/3MzzFV9
    ✔ 512GB Silicon Power NVMe Caching Drive: amzn.to/3MzkBae
    All amzn.to links are affiliate links.
    /=========================================/
    ✨Find all my social accounts here:
    ✅ dbte.ch/
    ✨Ways to support DB Tech:
    ✅ / dbtech
    ✅ www.paypal.me/...
    ✅ ko-fi.com/dbtech
    ✅ Cashapp: cash.app/$dbte...
    ✅ Venmo: venmo.com/dbte...
    ✨Come chat in Discord:
    ✅ dbte.ch/discord
    ✨Join this channel to get access to perks:
    ✅ / @dbtechyt
    ✨Hardware (Affiliate Links):
    ✅ TinyPilot KVM: dbte.ch/tpkvm
    ✅ LattePanda Delta 432: dbte.ch/dfrobot
    ✅ Lotmaxx SC-10 Shark: dbte.ch/sc10shark
    ✅ EchoGear 10U Rack: dbte.ch/echoge...

КОМЕНТАРІ • 42

  • @Nostalgist92
    @Nostalgist92 2 роки тому +20

    If you use Traefik for your reverse proxy you can go one step further and use the "On Demand" plugin, it works great even in swarm mode plus if the docker container is one that takes a little bit to start up it will show you a page indicating that it is loading up while you wait, pretty neat

    • @WebystherNunes
      @WebystherNunes Рік тому

      Lazytainer is a layer 3 which is terrible to healhcheck, this plugin is much better!

  • @nalle475
    @nalle475 2 роки тому +1

    Energy pricing today make this interesting really interesting. Need to find time to test it out.
    Running multiple enterprises server’s in the lab/production starts to get the interest of my wife.

  • @PramodLekkala
    @PramodLekkala 2 роки тому +2

    Nice video!! thanks for the explanation, didn't know this thing existed

    • @DBTechYT
      @DBTechYT  2 роки тому

      Glad you liked it!

  • @tarunreddy6979
    @tarunreddy6979 2 роки тому +1

    Your videos are always very helpful. Learned so much from you. Thankyou!

    • @DBTechYT
      @DBTechYT  2 роки тому

      Happy to hear that!

  • @DarrylGibbs
    @DarrylGibbs 2 роки тому +1

    Awesome! I was meaning to check this out but wondering how the heck the config would work.

    • @DBTechYT
      @DBTechYT  2 роки тому +2

      I'm glad the video was helpful. The documentation about a few things was kinda sparce, so that I demonstrated things a few times

  • @ammaralzhrani6329
    @ammaralzhrani6329 2 роки тому +1

    Thanks for great video, is possible to make it without port ? Like just start and stop docker as script automation? Not for traffic management

    • @DBTechYT
      @DBTechYT  2 роки тому +1

      This method uses traffic packets to automate the startup and shutdown of the containers

  • @PrimalDashes
    @PrimalDashes Рік тому

    So I'm completely struggling with this one. One specific issue is: the port we use for lazytainer... Is it the Host or Container side port? Ie: audiobookshelf is set to 13378:80. So which port would be set to lazytainer? Ive been able to spin up both containers from a stack, but then the logs from lazytainer are empty and the other containers logs function as usual.
    EDIT: ok so it's working to Shut Down the container, but now the logs keep increasing the packets to restart it without ever restarting the container

  • @ronm6585
    @ronm6585 2 роки тому

    Thank you.

  • @robertgherlenda4622
    @robertgherlenda4622 2 роки тому +1

    Are you able to explain how you can use Nginx Proxy manager with Lazytainer, as I trying to use it but get a 502 error when the container is stopped

    • @DBTechYT
      @DBTechYT  2 роки тому +2

      You may have to change the timeout in the docker-compose and then wait a period of time for the container to come up, then reload the page

    • @robertgherlenda4622
      @robertgherlenda4622 2 роки тому +1

      @@DBTechYT thank you I will look into that 👍

  • @stevenbell7634
    @stevenbell7634 2 роки тому

    I push my traffic through a VPN. Would be interesting on getting this working within that kind of set-up. Not sure how that would work. Probably a limitation off the setup.

    • @DBTechYT
      @DBTechYT  2 роки тому

      I guess it depends on how your VPN connection is setup on your network

    • @variable_0
      @variable_0 Рік тому

      Did you manage to make it work?

  • @joeblond6536
    @joeblond6536 2 роки тому +1

    Hello, ist it possible to use lazytainer with existing docker containers?

    • @DBTechYT
      @DBTechYT  2 роки тому +1

      Absolutely. You would just spin up a Lazytainer container with the settings you want and then modify the existing containers by moving their ports to the Lazytainer container and adding the labels to the existing container to match the Lazytainer container

    • @joeblond6536
      @joeblond6536 2 роки тому

      @@DBTechYT Great! Thank you!

    • @rafaellima1385
      @rafaellima1385 Рік тому

      @@joeblond6536 You can't change labels of an existing container, so the right answer is no , you can't use on existing containers, you should create new ones with the labels of your lazytainer setup

    • @PrimalDashes
      @PrimalDashes Рік тому

      @@rafaellima1385 you can absolutely edit the labels on an existing container. just edit the container, adjust the labels and redeploy/replace. No removal of the container necessary

  • @vijeyparthasarathy
    @vijeyparthasarathy 2 роки тому

    How much you pay for portainer application... I saw only 5 containers ... how much are are paying... I need to purchase .....I need 7 containers

    • @DBTechYT
      @DBTechYT  2 роки тому +1

      Portainer community education is free. And Business edition gives 5 nodes for free

    • @vijeyparthasarathy
      @vijeyparthasarathy 2 роки тому

      @@DBTechYT thanks for the update ... I will use it in my project ... can I use it in the production server???

    • @Rockwolf50
      @Rockwolf50 Рік тому

      @@vijeyparthasarathy Why wouldn't you be able to?

  • @yourpcmd
    @yourpcmd 2 роки тому

    What is the youtube conatiners? Is that just Nextcloud?

    • @DBTechYT
      @DBTechYT  2 роки тому

      It's for archiving media from the internet

    • @pi4official
      @pi4official 2 роки тому

      @@DBTechYT can you make video of that?

  •  2 роки тому

    Has anyone an idea, if lazytainer is/will be available for the Raspberry Pi too?`

    • @DBTechYT
      @DBTechYT  2 роки тому +1

      According to this Reddit post, it should be compatible with ARM: www.reddit.com/r/selfhosted/comments/x39p67/comment/impozt/

    •  2 роки тому

      @@DBTechYT Thank you. Seems like Pi-Users need to use the Tag "feat-moreArmSupport" for the lazytainer-docker image.

  • @lawsnewton
    @lawsnewton Рік тому

    Too bad you cannot have one lazytainer that watches multiple containers traffic.

    • @DBTechYT
      @DBTechYT  Рік тому

      it does watch multiple containers. You can just set it to watch a single container if you want

  • @LampJustin
    @LampJustin 2 роки тому +1

    Serverless in docker lol

  • @drbyte2009
    @drbyte2009 2 роки тому

    This is an interesting video. I can do something with this!
    p.s. When do you start with proxmox again...?

    • @DBTechYT
      @DBTechYT  2 роки тому

      Glad you enjoyed the video. I'm still thinking of things to do with Proxmox to make content about. If you have a specific request, let me know and I'll look into it :)

    • @drbyte2009
      @drbyte2009 2 роки тому

      @@DBTechYT I would love to see a video on how to create a wifi access point ( that uses the onboard wifi card). If that’s possible of course.

    • @vgamesx1
      @vgamesx1 2 роки тому

      @@DBTechYT I have a suggestion, how about a video overview of splitting up work loads, for example separating certain things like NPM to their own LXC container to work with the rest of the system and even taking it a step further by working with multiple instances, if you have two or more PCs you can send VMs/containers between them, the hardest part for me to understand is how load balancing works.
      I know it's not super useful for homelabs, but let's say you had several RBp or some other low-end PCs for something like Plex/Jellyfin which might only be good enough to handle one user at a time, it would be kinda cool to have a cluster that assigns each user to a different instance or something vaguely like that.

  • @LampJustin
    @LampJustin 2 роки тому

    Serverless in docker lol