<?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/">
  <channel>
    <title>Forem: Sergei Polovodov</title>
    <description>The latest articles on Forem by Sergei Polovodov (@sergeiqa).</description>
    <link>https://forem.com/sergeiqa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3800301%2Fd37340ad-e64e-4019-b744-93b24767a23d.png</url>
      <title>Forem: Sergei Polovodov</title>
      <link>https://forem.com/sergeiqa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sergeiqa"/>
    <language>en</language>
    <item>
      <title>How to add GitLab Registry to Dokploy?</title>
      <dc:creator>Sergei Polovodov</dc:creator>
      <pubDate>Thu, 05 Mar 2026 19:07:31 +0000</pubDate>
      <link>https://forem.com/sergeiqa/how-to-add-gitlab-registry-to-dokploy-373k</link>
      <guid>https://forem.com/sergeiqa/how-to-add-gitlab-registry-to-dokploy-373k</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftt2idgc9e99xj1p98w27.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftt2idgc9e99xj1p98w27.webp" alt=" " width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For Febrary 2025, official wiki doesn’t have any information about GitLab registry support, LLMs don’t know any way to make it work as well, but… it’s possible and it works.&lt;/p&gt;

&lt;p&gt;If you’re reading this, you probably already know why we use the registry. You can skip the long part and scroll down to the instructions.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is docker registry?
&lt;/h2&gt;

&lt;p&gt;It is a storage with our ready docker images.&lt;/p&gt;

&lt;p&gt;We build once and use prepared images anytime. We don’t have to waste time and resources for building our image each time on each new machine for each deploy.&lt;/p&gt;

&lt;p&gt;Registry is like… a freezer with infinite pizza. Cook once — take out as many times as you want. Same pizza. Every time.&lt;br&gt;
You don’t wait, you don’t worry — just grab and go.&lt;/p&gt;

&lt;p&gt;Build every time costs you at least two things:&lt;br&gt;
&lt;strong&gt;Time&lt;/strong&gt; - because every deploy is a cooking session.&lt;br&gt;
&lt;strong&gt;Consistency&lt;/strong&gt; - because every cooking session is a little different.&lt;/p&gt;

&lt;p&gt;Same recipe, but different hands or different day sometimes can give you different result. And that’s a problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we need registry?
&lt;/h2&gt;

&lt;p&gt;As I already mentioned, registry helps us to store built docker images of your apps without rebuilding build of them for each deploy from sources.&lt;br&gt;
The one of main advantages is consistency. Immutable artifact. (build once, run anywhere, remember?&lt;/p&gt;

&lt;p&gt;You always have exactly the same artifact, which means you can be sure that what you tested is exactly what you deployed. Everything else follows from this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Speed&lt;/strong&gt;. Skip build step on deploy. Just pull and run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Low server load&lt;/strong&gt;. Your build runs on GitLab Runner. The build process can’t affect your app server at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Simple rollback&lt;/strong&gt;. Older versions are always there, just pull a previous tag.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security&lt;/strong&gt;. Small bonus. Source code never touches the production server.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the end, this is the industry standard. The big guys do it this way for a reason.&lt;/p&gt;

&lt;p&gt;P.S. It’s worth noting that an image might be built for the wrong platform, but this is usually caught and fixed during the initial setup — or solved entirely by using multi-platform builds. Also, for true immutability, it’s better to pin versions by digest rather than by tag, since tags can technically be overwritten.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to add Gitlab registry to Dokploy?
&lt;/h2&gt;

&lt;p&gt;To configure a Gitlab Container Registry, you need to fill the form (Add a external registry modal) with the following details:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Insert the &lt;strong&gt;Registry Name&lt;/strong&gt; eg. Gitlab-registry&lt;/li&gt;
&lt;li&gt;Go to &lt;a href="https://gitlab.com/-/user_settings/personal_access_tokens" rel="noopener noreferrer"&gt;https://gitlab.com/-/user_settings/personal_access_tokens&lt;/a&gt; and click on &lt;strong&gt;Add new token&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Insert &lt;strong&gt;Token name&lt;/strong&gt; eg. dokploy&lt;/li&gt;
&lt;li&gt;Set &lt;strong&gt;Expiration date&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Select follow scope: &lt;strong&gt;read_registry&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Click to &lt;strong&gt;Generate token&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Copy the &lt;strong&gt;access token&lt;/strong&gt;, comeback to Dokploy and paste it in &lt;strong&gt;Password&lt;/strong&gt; field&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Registry URL&lt;/strong&gt;: set registry.gitlab.com&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Username&lt;/strong&gt;: set gitlab group as username, eg. greenKit-group
&lt;em&gt;Attentions: You must use group, not login. If you login greenKit you must set greenKit-group&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Image Prefix&lt;/strong&gt;: Left empty&lt;/li&gt;
&lt;li&gt;Click on &lt;strong&gt;Create&lt;/strong&gt; to save the registry&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Be attention&lt;/strong&gt;: Modal window have &lt;strong&gt;Test registry&lt;/strong&gt; button, but for GitLab registry it always return “Registry Tested Successfully”. With invalid data too.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Actual for v0.26.7 at least.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>dokploy</category>
      <category>gitlab</category>
      <category>docker</category>
    </item>
  </channel>
</rss>
