<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Using Portainer gitops feature? - DevOps Forum				            </title>
            <link>https://www.virtualizationhowto.com/community/devops-forum/using-portainer-gitops-feature/</link>
            <description>Virtualization Howto Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 20 Jul 2026 13:25:19 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Using Portainer gitops feature?</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/using-portainer-gitops-feature/#post-1045</link>
                        <pubDate>Thu, 07 Nov 2024 02:21:41 +0000</pubDate>
                        <description><![CDATA[Hello @bastianthies. Just checking in to see if you made any progress or need any other help? Just let me know. Thanks again.]]></description>
                        <content:encoded><![CDATA[<p>Hello @bastianthies. Just checking in to see if you made any progress or need any other help? Just let me know. Thanks again.</p>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>Brandon Lee</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/using-portainer-gitops-feature/#post-1045</guid>
                    </item>
				                    <item>
                        <title>RE: Using Portainer gitops feature?</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/using-portainer-gitops-feature/#post-1041</link>
                        <pubDate>Sun, 03 Nov 2024 13:42:03 +0000</pubDate>
                        <description><![CDATA[Bastion,
Awesome forum post and definitely something that is close to my heart as well. I have been moving towards a much more DevOps and GitOps focus in the home lab and in production envi...]]></description>
                        <content:encoded><![CDATA[<p>Bastion,</p>
<p>Awesome forum post and definitely something that is close to my heart as well. I have been moving towards a much more DevOps and GitOps focus in the home lab and in production environments. Portainer is an awesome tool overall and can do so much.</p>
<p>Also, i have been pivoting my home lab environment from GitLab to Gitea so I am definitely on the same page with you there. I really like Gitlab and as most can see I have written about it a lot in the past. </p>
<p>However, I find that Gitea is super fast and I don't have the sluggishness that I find with GitLab. I ran the Omnibus config so this is probably part of my issue but even throwing hardware at it, I haven't found the performance that I have with Gitea. Anyways, I am digressing there. On to the topic at hand.</p>
<p>I think what you are wanting to do you will need to configure a very basic CI/CD environment. But this is not too difficult. I just added Drone CI Server to my Gitea config and look for a blog post on all the ins and outs of doing that. Drone looks to be great so far. So, in reading through what you are wanting to accomplish.</p>
<p>I believe you will want to do the following:<br /><br />1) Commit and push your code to your repo</p>
<p>2) Kick off a pipeline that builds your new container image based on the new push</p>
<p>3) The pipeline kicks off the webhook in Portainer that updates the container and pulls from your private repo where you have pushed the newly built image. </p>
<p>4) Your traefik config should stay the same since really all you are changing is the container image.</p>
<p>Let me know if this sounds like the workflow?</p>
<p>Brandon</p>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>Brandon Lee</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/using-portainer-gitops-feature/#post-1041</guid>
                    </item>
				                    <item>
                        <title>Using Portainer gitops feature?</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/using-portainer-gitops-feature/#post-1040</link>
                        <pubDate>Sat, 02 Nov 2024 22:03:08 +0000</pubDate>
                        <description><![CDATA[Hi!
I have a Docker-host running in my homelab with Traefik as reverse proxy and Portainer as orchestration tool (3 node free BE version). I plan to expand my single hosts into a Docker Swa...]]></description>
                        <content:encoded><![CDATA[<p>Hi!</p>
<p>I have a Docker-host running in my homelab with Traefik as reverse proxy and Portainer as orchestration tool (3 node free BE version). I plan to expand my single hosts into a Docker Swarm cluster with shared storage soon, using the concept of Brandon's recent video “Best Docker Container Server Setup // Docker Swarm, CephFS, and Portainer”. But that doesn't really have much to do with my question &#x1f60a; It's more about the interaction between my local development client and the docker cluster.</p>
<p>How I work so far: I'm using VSCode as a code editor and deploying my python web applications already into containers using the VSCode Docker extensions - to test them locally. On the docker side I use a wildcard subdomain of a public domain, *.mydomain.com with dns0-challenge, so all I have to do is to add {myproject}.mydomain.com as a Traefik router host rule label and the service is made available to me via HTTPS with a valid certificate. This works great. Pushing the image into my private docker registry is also no problem and a local git server (gitea) is also already running. But all the pushing and pulling is done manually - so far...</p>
<p>...so I'm looking for a little bit more automation (without the complexity of a whole CI/CD pipeline). What I want to do: Starting from VSCode, pushing my project into a special git deploy branch, so that Portainer is informed about the change over a webhook. Portainer pulls then the updated and automatically built Docker image. The docker-compose is adjusted and prepared on the git side, so that the whole stack fits to my cluster config with Traefik, the needed networks and so on. Ideally, I don't want to have to open Portainer for this because all runs in the background.</p>
<p>I have now read through a lot of documentation and watched videos (mainly from VHT, of course &#x1f609;) and have a concept in my head, but I'm not sure if it will work:</p>
<p>I want to use <strong>Portainer's gitOps functions</strong> to pull the image and update the stack via webhook. The Traefik labels should also be integrated automatically, if possible. My idea is to do this via a git submodule “traefik-config”, where I store the needed Traefik labels as a yaml template. The project names and hostnames are passed via environment variables. The template should then be included into the docker-compose.yml from the main project and and the result is pulled from Portainer as docker-compose.final.yml (with Traefik labels included and some other changes or enhancements).</p>
<p>As you can see, from here on it gets kind of imprecise and vague, because I'm not entirely sure whether it will work like this. I don't know, where to script this process and where to add the needed triggers (gitea actions?).</p>
<p>I would appreciate your opinions. Has anyone already used Portainer's gitops functions? Are they are any good for such a workflow? Better ideas?</p>
<p>Many thanks and best regards,<br />Bastian</p>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>Bastian Thies</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/using-portainer-gitops-feature/#post-1040</guid>
                    </item>
							        </channel>
        </rss>
		