-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are groups needed even for just one container ? #34
Comments
For now, yes. I'll look into adding a sort of "default" so that this can be handled automatically without the syntax overhead
yes.
I actually don't know. I'd be curious to see how that is handled. If you get to test it, please let me know, otherwise I'll test it eventually.
Probably.
I don't think so. Someone smarter than me could probably hack it, but it require a ton of extra code compared to what is there currently. If you want to create a PR for it, I'd be happy to approve it, but it's unlikely I'll write it myself.
I agree. Once we determine what this behavior looks like I'd be happy to go in and add an example that uses it. |
Thanks for the reply @vmorganp ! Will give Lazytainer a spin over the coming weeks and see how I go. |
another question @vmorganp - based on this reddit link
Is this still the case ? From the recent examples, I assume one Lazytainer container can be used to up/down multiple different containers, as long as there is a group based separation / relation configured ? |
Correct. |
I just did a quick experiment with the depends_on attribute, and it looks like if you had an app and a database container, they would come up in a healthy way, assuming same group and proper depends ons and whatnot. I'll see about getting a documented example. Is there a particular service you would like for me to do that with? |
Thank you for checking it out ! Its great news that its working in a healthy way. For examples - I was asking this question with mariadb and n8n in mind. Though any combination of app and db where db comes up first on wake up should be following the same. Edit - Once I manage to get my below example working, I can help contribute with the examples with a simple PR. |
I am trying to get started with a simple example but it looks like I am missing something either network related or ports related, as I am unable to get the requests to reach Lazytainer container. I do notice in lazytainer logs that the labels are getting picked up, and lazytainer is also able to stop the container after the configured time (lazytainer logs below). I have also managed to get it working with containernursery - able to reach the dozzle application ui. Where as with Lazytainer - The request is failing when caddy seem to be attempting to send to lazytainer. Am I missing something with ports / networking ? Keen to get this working with Lazytainer, so any suggestions is appreciated. The error I see in caddy logs is -
The set up is -
Here is my docker compose -
Lazytainer logs -
I run with docker compose up (not in swarm mode). |
Container nursery is currently integrating with caddy, with caddy acting as your proxy. This isn't working because your There might be some chain where you can put lazytainer behind a reverse proxy, but I don't know how to do it this second |
thanks for the reply @vmorganp - that makes so much sense now, after spending a bunch of time thinking something was wrong with my compose file. Are there any plans to make lazytainer work with other proxies in future ? |
unlikely that I'll write it, but I'd approve a PR |
Hello there, great work on this project, looking forward to using this.
I have a few questions, which I hope you might also find useful to add to the readme, or as a separate FAQ section for clarity on how Lazytainer works -
I was thinking if I could create just one default group for single containers and map them all to the same group.However would that mean all the unrelated single containers will come up together when I want to use just one of them ?
Is there a better way of doing this ?
In cases where multiple containers are assigned to the same group - is there any way for me to control the ordering in which the containers are brought up ? For example lets say i have [ database and app ] containers assigned to group app1 - how can I ensure that the database container comes up first before the app container ? Also, will Lazytainer take care of waiting for the db container to be up first before starting up the app container ?
Related but slightly different question - Does Lazytainer automatically look for the 'depends_on' in docker compose and ensure that the depends_on container is up ? And if its not then Lazytaner will bring up the dependency first before the app container ?
Would it possible for you to add a diagram of how Lazytainer works, what the primary configuration that drive its behavior, how it checks up/down status, how it decides to bring up the containers along with ordering /etc details ? A flowchart / sequence diagram showing the internal flow of logic will be a great resource for learning about the project.
For a use-case where Lazytainer is used in combination with status monitors like UptimeKuma, etc. - Is there a way to tell Lazytainer to not spin up any containers for requests from specific containers / ipaddresses / etc ? Otherwise just the requests from UptimeKuma will keep the containers on all the time. So a way to say igonore requests from specific applications from starting up a container will be very useful.
As a newcomer to Lazytainer, I think it may be useful to add another detailed example file with multiple containers showing examples of how to configure these ordering / dependencies among containers, along with combination of app+db to be up/down together, and few other single containers that can be up/down independently.
@vmorganp - Appreciate your replies / suggestions in advance !
The text was updated successfully, but these errors were encountered: