Sandbox icon indicating copy to clipboard operation
Sandbox copied to clipboard

App Request: Lazytainer

Open Ryah opened this issue 1 year ago • 1 comments

Lazytainer

What does it do? Why? Please describe.

Docker containers can take up a lot of resources, especially on less powered devices. This allows specific docker containers to start or stop depending on traffic.

A good example is for Minecraft servers. Modded servers can take up a lot of RAM and CPU that's just wasted if no one is online. Lazytainer allows the server to turn off after a configurable amount of time, and then start the server when someone tries to connect to it.

This is different than docker pause as pause doesn't free up used memory, so if the container is already using a lot of RAM, it's now locked. This is a full auto stop and start.

Links to further information

  • [x] Link to project homepage or github: https://github.com/vmorganp/Lazytainer
  • [x] Link to documentation: on the github page
  • [x] Link to installation instructions: on the github page
  • [x] Link to compose file (Minecraft server example): https://github.com/vmorganp/Lazytainer/blob/master/examples/minecraft/docker-compose.yaml

What are you willing to do to help?

  • [x] I will you help with making docs if this gets picked up.
  • [x] I will you help with testing.

Anything else you would like to add.

I feel like this would be very useful for people running saltbox on Raspberry Pi's or other low powered servers/shared VPS.

Ryah avatar May 30 '24 01:05 Ryah

We’d accept a PR for this, but I don’t see a ton of value in the Saltbox ecosystem to be honest. First and foremost, Saltbox doesn’t support ARM at all which excludes the majority of low powered devices that would seem to benefit from something like this. Second, Saltbox leverages the reverse proxy wherever possible which does not appear comparable here so the benefit is limited to roles that separately bind their own ports (I.e. game servers, as you identified) which is a small minority. Third, there is nothing specific needed to actually use this with Saltbox as you can deploy a compose file alongside and use the inventory system to apply labels and network mode as needed. That is probably the best path for a user that wants to use this.

owine avatar May 30 '24 02:05 owine

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 24 '25 01:08 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 29 '25 01:08 github-actions[bot]