Deploy Komodo Core
Lets get straight to it. Create a folder in your home directory called Komodo and place these two files into it.
Make sure to read all the options and replace all <redacted> with proper values. When its all done we have to first deploy another thing onto the server first.
Deploy Komodo Periphery
The periphery will be deployed on every server which shall be managed by your Komodo instance. I always choose to use the systemd version since I feel that makes the most sense. You can of course also deploy the docker version instead.
Komodo provides a really easy to use shell command for deploying a periphery agent to your server. Run this script as root user. Make sure you have Python3 installed as well.
This will also create a systemd service called periphery.service you can easily inspect it running with
All the files the periphery creates like stacks, repos and so on will be put into /etc/komodo. This is also the place where the config file (periphery.config.toml) is located. This config file will be used by the systemd service. Now we need this very config file and edit it soooo
In there locate a line like passkeys = []. Here we have to add the passkey which we set in the .env file when deploying Komodo Core. Add it like this ... the "..." are also important
Now restart the service for the changes to take effect
Finally Spin up Core
Now that we have that out of the way we can spin up Komodo Core. Change back to the directory where the compose.yaml from the start is located. And enter a quick docker compose up -d.
Once everything is settled your new instance will be at http://YourIp:9120. There you will be greeted with a login using the first login creds from the .env file.
Profit
Now you have unlimited power of your docker instances!
Add a new Server
First just repeat the steps from Deploy Komodo Periphery. Then open up your Komodo Core Interface and follow my lead.
- Navigate to Servers on the left side
- Click on Create new Server
- Give the Server a Nice Name
- Click Create
- Replace the two indicated parts with the ip of your new server
- Its important to use https and the port for the first one
- Enable the server at the very top
- Press Save
Congrats, you just added your first server. You should now be able to view all kinds of stats for it and also use it.
Deploy a Stack
This will most likely be the most important workflow for users tbh.
- Navigate to Stacks on the left side
- Click on Create new Stack
- Give the Stack a Nice Name
- Click Create
- Select the Server where you want your docker stack to run
- For the Mode we can choose UI Defined
- There will already be a nice example hello world provided
- Press save at the top
- Now we can press deploy at the top to get the ball rolling
If everything worked you should see some logging output in the Log Tab which should look something like this.
There are a lot more options when editing a Stack but they are relatively self explainatory.