Stack in git repo #36
Replies: 14 comments 4 replies
-
On the other hand you could also just clone a remote repo to the local my stack and just have some kind of git add . and commit to remote. |
Beta Was this translation helpful? Give feedback.
-
I'm also keen on a stack git back end. |
Beta Was this translation helpful? Give feedback.
-
Also interested in this! Would love some sort of bidirectional sync so changes in git would get pulled (via polling or maybe even a webhook), and changes from dockge would get pushed :) |
Beta Was this translation helpful? Give feedback.
-
+1 to this as well, being able to house my compose files in something like gitea and deploy a stack that way is one of the major portainer features I use. |
Beta Was this translation helpful? Give feedback.
-
Also support this |
Beta Was this translation helpful? Give feedback.
-
For supporting push-based, PaaS-style "GitOps" with Compose files, there is antoniomika/pcompose, from which bits of logic could be ported or taken inspiration from. Pull-based syncing involves a lot of repository handling, from what I can tell from experiences with ArgoCD, esp. around authentication and secrets management. |
Beta Was this translation helpful? Give feedback.
-
Just found this discussion, and I feel it's so similar to something I have in mind, that another request would be unnecessary. On my end, I would love to have the ability to
For the clone action, one could theoretically specify the repo url and provide credentials in some way (if needed), which would be then archived for later use. For the pull action, the credentials could be reused.
I, for one, wouldn't want to have changes pushed to git, so something like this would allow the behaviour to be pretty customizable.
What if the standard git binary was used? Dockge already manages stacks by invoking docker-compose, from what I can tell. |
Beta Was this translation helpful? Give feedback.
-
Probably not quite what you're looking for but I missed the GitOps functionality when switching from Portainer. I have no compose files locally, they're all in git. Basically polling the repo and updating my stacks if there are change is all I need. Wrote a simple container that I run together with the Dockge one to handle this. Note that the functionality is very limited but it does enough for me to completely replace Portainer with Dockge. It will ignore your local changes though and replace them if there are changes in the git repo. |
Beta Was this translation helpful? Give feedback.
-
It would be really cool. Maybe instead of handling entire git repo (which would be ideal, especially if I could point to individual paths on that repo) let's start with simple That is: for given stack, dockge pulls every n minuts/hours/whatever from particular endpoint. It could check updates based on checksuming what's locally in stack vs what's received (I think compute power for this wouldn's be too much, but not sure) if there's difference, replace local file (if not read only) and redeploy. I know it doesn't take into consideraiton rollbacks, newer commits etc. but sounds really simple in implementation. And if something you can always roll back on branch itself. |
Beta Was this translation helpful? Give feedback.
-
I also would love to see some kind of gitops functionality. This would be a killer feature. |
Beta Was this translation helpful? Give feedback.
-
Just wanna put my two cents here that I think there are two separate feature requests here.
|
Beta Was this translation helpful? Give feedback.
-
I wanted to see if there was any traction on this feature. I have been using a utility called Dokemon (https://github.com/productiveops/dokemon), which is very similar to Dockge, except it has a setup for managing multiple docker hosts in one console (with an Agent type setup), as well as the ability to point my compose library to Github. Unfortunately, the owner of the repo, has had to step away so there has been no development for a while. Any thoughts on getting this feature in Dockge? thanks |
Beta Was this translation helpful? Give feedback.
-
+1 What i prepose one repo for multiple servers. But that each server is standalone when it comes to checking if there are updates via button in the web interface, and maybe an automated check and fetch compose up on a configurable variable.
|
Beta Was this translation helpful? Give feedback.
-
Any update on this guys? I would love to have this feature |
Beta Was this translation helpful? Give feedback.
-
As the subject says could we have the functionality to point my stack root to some git url maybe even with ref branch? Any new stack would trigger a commit to branch/repo
Beta Was this translation helpful? Give feedback.
All reactions