Komodo: A Better Way to Manage Docker?
Read full transcript 15 segments
-
Yes, I've already reviewed many Docker management tools on this channel before, but honestly guys, I just can't stop finding and exploring more interesting container tools. So that's why today I'd like to show you Komodo, a free and open source Docker management platform that does yeah many things similar to other tools like you might already know. You can connect all of your Docker hosts or swarm clusters in your home lab and then start managing existing containers, start stop them, inspect logs, update images, deploy new compost stacks, and all of this in a nice and clean web interface. But there are a few things that make Komodo kind of stand out from other tools like this. First of all, it has a very deep integration with git repos and synchronizes its resources and configurations from simple toml files. And if you know me guys, I absolutely love things like this because then you can very easily use AI agents to automate the configuration and deployment of all these things that allows you to create and customize all of your container workflows from building and deploying these applications to run shell script or TypeScripts supporting web hooks and schedule jobs. So Komodo is much more than just managing containers. I've deployed this in my home lab and I'm currently testing this. I've also built an automation procedure for my new vipcoded homelap lens tool. By the way, more about that tool coming in future videos. But yeah, comeomo helps me shaping this entire life cycle for this container automation tool from building,
-
testing to deploying and updating the code. So let us take a look at Komodo and find out whether this might be the right tool for managing your Docker and container workflows as well. Before we do that though, I quickly want to talk about another interesting topic because you guys know I like to run those because you guys know I like to run things myself in the home lab like my own servers, DNS, networking, firewalls, probably more than I actually need. But that doesn't make all the things that I'm running self-hosted or private. For example, when you're visiting websites through HTTPS, that of course protects the content with encryption, but your internet service provider can still see all the destination IP addresses and sometimes even the server names you're browsing through SNI. And that's why I'm using ProtonVPN, the sponsor of today's video. Now, ProtonVPN establishes secure encrypted connections from your devices to one of its more than 22,000 servers in over 140 countries. So whether you're at home or in another public network, ProtonVPN helps you keep your browsing destinations private from your internet provider, hiding your home IP from the websites you visit, and lets you change your virtual location to access content that might otherwise be restricted where you are. Now, some of you might say that this is just moving trust from your internet service provider to another company like Proton. And yes, of course, you're right. But what I absolutely love about Proton is that they are based in Switzerland. So they're not required to retain activity logs and their apps are
-
open source. And Proton's no lock policy has been independently audited. So I think this is really great. And with VPN plus you also get Net Shield. That's a feature for DNS filtering that blocks known advertising, tracking, and malicious domains. So definitely check it out. Visit protonVPN.com/christian for up to 70% off. And there's also a 30-day money back guarantee. So if you want to check it out, link is in the description box. down below. All right, so now let's get back to Commodore. And if you want to set this thing up, you first of all should go to the documentation. So that explains what this platform is, what it does, and also how to set up this. Now, one thing that is interesting about Komodo, it uses or prefers a database that is called MongoDB. That honestly was completely new to me because I didn't had any other application in my home lab that requires it. But MongoDB is an interesting database because it is unlike the relational tablebased models that you might know from Postgress or Maria DB a document database. So everything that is stored in MongoDB is stored in JSON-like objects with nested fields and arrays and it is much more dynamic. There are no fixed tables or database schemas that need to be updated. You can also use an alternative setup with Far DB that is a MongoDB compatible database that actually connects to Postgress database with a document DB extension. However, that's actually not the recommended option. And there's also a simple quick start guide with a compos.l file and
-
compose.env files. Here you can also find what's going to be deployed on your server. First of all, the MongoDB in a simple docker image. Then the core application. This is the whole platform like the brain of Komodo. and another small container that is called periphery. Now, this is actually an a small agent that come uses and you can deploy this on every docker host that you like to manage with comedo that also forwards a bunch of metrics monitoring. We'll later take a look at the app as well. Now, I don't want to show you a walkthrough guide through this whole installation customize this to your specific environment. So I personally I don't like to deploy a database for each and every docker application in my home lab. So I'm usually taking this out of the compost tech deploy this to a separate project. Just to quickly show you how I've done this. So this is a project that I've currently deployed on my server test one and my production setup for MongoDB. Again very simple. I'm injecting credentials into the environment variables. Now this is required for MongoDB to accept external connections with an authentications. And I'm also attaching this to an externally managed database network. So this is a Docker overlay network in my swarm cluster. So all of my applications can access and use this MongoDB. So if I deploy future applications that might need a database like this as well. I don't need to deploy a new database for every application. And I'm also deploying Komodo in a separate environment in a test and production
-
environment separately. So this one for example defines my comeomo core configuration. Of course I'm using a traffic reverse proxy to get a trusted TLS certificate on my home.craf.de domain. Again I've explained all of this stuff in previous traffic and DNS videos as well as my setup for the OIDC with authentic. Then you have this little OIDC button here at the top. And you don't need to remember a separate credential for your com platform login with pass keys or passwordless authentication. That's pretty cool. And you can also uh disable new user registration. If you run Komoo the first time, it wants you to set up an admin user. Now, once you have done that, disable that new user feature so no one else can register at your KOD platform. So, these are some of the things that you might want to customize in your setup. And if you don't want to write it down while watching this video, you should check out my website, christristiana.de. So, here you will find all the latest YouTube tutorials that I'm doing. And when this is done, you'll also find it here. Click on this and this will show you a written guide with all the commands. So you don't need to remember everything that I'm explaining in this video. Of course, once you start the comedoo platform, you log into it, you should see an empty dashboard. There's no server, no setup connected to it. If you go back to the documentation and go to connect more servers, that explains how to install the periphery agent on a remote Docker host. One thing that you need is you need to enter the core address. So this is the web address where Komodo is running. That's why I'm using traffic
-
with trusted TLS certificates and I can just use this URL here. And you need an onboarding key. Now onboarding keys are shortlived tokens you need to add in Komodo to connect new servers. So you do it in the settings menu onboarding and then just click on new onboarding key. So then you can add one with an expiry date of 1 day, 7 days because you only need them once for connecting the periphery agent. So just create one, copy the key, connect to your server over SSH and then just paste this command here and then you should see in your system CDL a service called periphery and and that should be then connected to your Como platform and once that is done your comeomo server will register here and yeah does a few cool things with server management. For example, if you go to a server, you can see many of its details here like the IP address, the CPU cores, disk usage, memory usage, and also the running containers on it, the Docker images, the volumes, the Docker networks, and you can even run a remote terminal to manage the server. So, this pretty cool. And you can also enable some cool system maintenance actions like for example, it has an auto prune image feature that runs every day at midnight. Docker images. Whenever you update them, they just fill up the disk space. By the way, it also has some nice management features for this. For example, as you can see here, I've got a notification for my server test 5 that this is is running out of disk space soon. So, I probably should check it out. It also
-
has some historical alerts for server restarts or something like this. Yeah. So, it is more than just managing containers. It's also some somehow managing your servers. And if you want to add a swarm cluster to your Komodo platform, you can easily do it here. So just click on new swarm like swarm test two for example. Yeah. And then you just need to add your manager nodes and all the other workers will automatically be detected. So here for example in my swarm test one you can see all the nodes, the stacks that are deployed on this, the services, the task config secrets. So you can also manage these things in here when you go to docker and then go to configs secrets and you can also use this to rotate secrets or yeah deploy new compost stacks. So that you can also easily do in here just define a new stack select the server or the swarm cluster depending on what you like. I'm just going to use stack test one for example on yeah one of my test servers here. create this and then you can choose the mode where or how you define the configuration. This is by the way one of the coolest things in Komodo because you can define this in the UI.
-
This easily gives you a compos file that you can edit here with syntax highlighting in a nice code editor or you can choose a different mode files on the server. then just put the path to the compost file that you deployed on that server or use a git repository so that you can synchronize all the deployment configurations from your repositories. This is the manual way of creating these things but there's also a better way to do this and this is by using git synchronization. So here for example I'm not defining a compos.l ML file. I'm just defining the git provider I want the account with the readonly access to it and what repository I want to connect and where is a comeodo.toml file. You can add more toml files to manage more things. And in this commodo file you can define all the resource configurations from the stacks you want to deploy from the builders the procedures the automation actions everything in a declarative way. So this is really powerful and you can do many cool things with it. Let me just show you for one of my projects for example the homelab lens how that toml file actually looks like. I just need to go to my home lab lens repo and then you will find the kobodor.comtoml file. So don't worry I'm not going to explain each and everything in this file.
-
Honestly my AI agent has mostly defined all of this. Yeah but this is one of the cool benefits of comedo because you do not need to use an infrastructure as code tool like terraform or anible or complicated API request or anything. This is actually very easy to write and read for you as well as an AI agent. So you can automate a lot of stuff with this Commodore automation system in a toml file. This is really nice. So let's go through a bunch of things here. For example, stack. Yeah, this basically just deploys a new docker compos stack called home lens test one. You can also [snorts] define if you want to auto deploy this or if you want to manage the deployment in a procedure or other workflow. More about that in a few minutes. But here in the stack configuration, you can find all the configuration settings that are stored in here. So all of this stuff here, the repository, what is the run directory on the server, where is the compose file located, where is the file, where the credentials are, and so on. You can even do advanced stuff like auto updating, pulling for updates to automatically update the Docker image version. Super cool. But it can even do much more. So here for example you can see there are some automation actions here to verify the image do a simple web request on the home lab lens platform. So that reports back to the comedoo platform was this actually deployed successfully or was
-
there an error during the deployment. Maybe the deployment happened but the application has an error. So then with this action I can get a response from that login URL. see whether this reports a 200 for successful or a 404 for not found or anything like this. As you can see this is a simple TypeScript action. So here in the actions you can define [snorts] this is a verification test and yeah so this is basically the code that my AI agent has written to see whether the platform was deployed successfully with git sync. You can easily define it here in a code and then use whatever actions you want like verification actions, auto update actions, API requests or you can even run provisioning stuff like sending a bunch of API requests to to an application or something like this. And you can execute these actions [snorts] here either in the web UI where you go to execute run them or you can schedule them here like on a specific time or run them through a web hook. And what you can also do if you have separate actions here, you can also package them in procedures here in the homelab lens deploy test. This is a procedure that runs three different stages. It first of all builds and publishes the docker image from the source code of the app to my docker registry running in gitlab. It's not running through gitlab ci by the way. So I'm also going to show that in a minute.
-
And then when it has built this image, it automatically deploys this stack. And the next one is the verification for the test deployment. So then you have the full pipeline from building, deploying and verification. It is currently a private repository that contains the source code of my home lab lens application. Again, completely vipcoded. I've not touched a single file in this project here myself. But yeah, the source code is stored in a git repository. And this build automation basically just takes the source code from my GitHub repository home lens from the main branch and packages this with the Docker file that is defined there in a new container image on my GitLab registry. And then the deployment step in Komodo can pull this image and deploy it on my test server. Here by the way you can see the procedure with the configuration for the different stages.
-
So run the build, deploy and verify and the deployment configuration is defined up here. This the home lab lens builder is a native AMD 64. It's a virtual machine the server pro 6 that I've just yeah where I'm just running docker but of course you can define separate build environments with different servers here if you like. And yeah, so this is the build command that actually defines where's the git repo, what branch you should pull the source code from, where's the docker file, what is the image tag that you should add, and then it has an auto increment version. So that means whenever I'm changing the source code, I deploy a new feature, I can just run this build action either manually or through web hook, doesn't actually matter. It will increase the version number by one. So version 006. You can also set if you want to include a latest tag or if you want to invoke this via web hook here. This is the image registry. So this will be pushed to my registry.home.crave.de.
-
This is my self-hosted gitlab repo. So yeah, that's basically all it does. Oh yeah, I need to show you one more thing. I need to show you the actual deployment. So this is the compose.l file for my homelap lens tool. So here is the image name or the image tag defined. Of course here you would typically add a latest tag or pin this to a specific version if you like that. That is not important for this tutorial but again it could be any compos file that you like to deploy or any source code from a git repository that you like to build deploy and test with commodor. So this is pretty just to demonstrate how that basically works. So depending so just imagine I've deployed a new feature and I want to test this on my real server infrastructure. I just go here to the procedure. I push the new source code to the branch and I just click on execute run. I need to confirm this with run and click on run. And here if you go to the updates, you can also track all the different stages. So if everything works. So yeah, that's already completed. And then it automatically runs the next stage. And here that's the latest stage, the verification. So currently it didn't load because it's probably just restarting the container, but it will take a few seconds until it should be reachable again. Yep. And now it's green. So let's refresh the page. And there my application is. And yeah, that's how I basically develop this app and deploy it with Commodore. Honestly
-
guys, I'm not sure if I'm going to use that tool from now on to deploy and manage everything because I've mostly defined all of this stuff in GitLab CI. And of course, you might have your own git procedures already in place like GitHub actions, GitLab CI, GT actions, but where GitHub actions or GitLab CI might be a bit too complex or too complicated and you're really just focused on Docker environments, Docker Swarm and Docker Compose. I think for these type of use cases, Kovado is a really powerful platform. I also like the look and feel of it. It has a very nice and clean web UI without too many bells and whistles or fancy things. It really just focuses on the stuff that actually matters. I think this is really nice. If your home lab is structured around Docker and Docker Swarm, I think this might be the one control panel that you like to use in your home lab. But again there are many other docker manage man management platforms around like arcane docand k coolify dock ploy and these type of apps there's a pretty strong competition around but I think what actually stands out here at komodo which is really the one unique killer feature it is this declarative approach this here is the main thing why you would want to use it if you like to work a lot with automations you like to define all of your configuration your building pipelines your automation actions, everything in simple readable files and use a lot AI agents to help
-
you automating and writing this or maintaining this. I think for that Commodore might be the best tool around. But that's just my opinion. Of course, I would like to hear yours as well. So, please leave me a comment. What do you think about Commodore? Do you like this approach or would you like to learn or see more video tutorials about it? Let me know in the comments. And of course, thank you so much for watching. A big thanks goes out to all of my Patreon supporters. You guys are really amazing and I love to create more stuff for you on Patreon. So, please check it out. Link is in the description. And of course, I'm going to catch you in the next video. Take care. Bye. Bye.
No summary available yet.
View original episode ↗