<?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>DEV Community: I Made Ocy Darma Putra</title>
    <description>The latest articles on DEV Community by I Made Ocy Darma Putra (@troke12).</description>
    <link>https://dev.to/troke12</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%2F394701%2F90c12716-f23b-4a8c-9e88-b5050cbdbbb5.png</url>
      <title>DEV Community: I Made Ocy Darma Putra</title>
      <link>https://dev.to/troke12</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/troke12"/>
    <language>en</language>
    <item>
      <title>Self-Hosted Docker Registry on Your Own SFTP: Introducing Refity</title>
      <dc:creator>I Made Ocy Darma Putra</dc:creator>
      <pubDate>Sat, 14 Feb 2026 12:35:31 +0000</pubDate>
      <link>https://dev.to/troke12/self-hosted-docker-registry-on-your-own-sftp-introducing-refity-5ce5</link>
      <guid>https://dev.to/troke12/self-hosted-docker-registry-on-your-own-sftp-introducing-refity-5ce5</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%2F84c0zmpbnv2rsu77dxal.png" 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%2F84c0zmpbnv2rsu77dxal.png" alt="refity" width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want a &lt;strong&gt;private Docker registry&lt;/strong&gt; but don't want to depend on a cloud registry or object storage, &lt;strong&gt;Refity&lt;/strong&gt; might be what you need. It's a small, self-hosted registry that uses &lt;strong&gt;SFTP&lt;/strong&gt; as the only backend for your images. Everything—blobs, manifests, metadata—lives on your SFTP server. No S3, no GCS, no vendor lock-in.&lt;/p&gt;

&lt;p&gt;I built Refity for myself that already have SFTP (rent from Hetzner Storage Box) and want to reuse it for container images without adding another storage system.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why SFTP?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;You already have SFTP (e.g. Hetzner Storage Box, shared hosting, or your own server).&lt;/li&gt;
&lt;li&gt;You want to avoid cloud object storage and its pricing/complexity.&lt;/li&gt;
&lt;li&gt;You need something that works in locked-down or legacy environments where only SSH/SFTP is allowed.&lt;/li&gt;
&lt;li&gt;You prefer one place for backups and access control (your existing SFTP).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Refity doesn't replace your SFTP; it uses it as the only storage backend.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Refity Does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Docker Registry API v2&lt;/strong&gt; — Standard &lt;code&gt;docker push&lt;/code&gt; and &lt;code&gt;docker pull&lt;/code&gt;; works with existing tools and CI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SFTP-only storage&lt;/strong&gt; — All layers and manifests are stored on your SFTP server; the app only coordinates and serves them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web UI&lt;/strong&gt; — A React app to browse groups, repositories, and tags, create/delete repos, and copy &lt;code&gt;docker pull&lt;/code&gt; commands.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth&lt;/strong&gt; — JWT-based login; you can put the backend behind your own proxy/VPN for extra security.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One-command deploy&lt;/strong&gt; — Backend + frontend with Docker Compose; optional env vars for production (JWT secret, CORS, SSH host verification).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So: a classic "registry in front of your own storage" with a simple UI and no new storage stack.&lt;/p&gt;




&lt;h2&gt;
  
  
  Quick Start
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Clone and configure
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/troke12/refity.git
&lt;span class="nb"&gt;cd &lt;/span&gt;refity
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Edit &lt;code&gt;.env&lt;/code&gt; with your SFTP details and (for production) a &lt;code&gt;JWT_SECRET&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FTP_HOST=your-sftp.example.com
FTP_PORT=22
FTP_USERNAME=sftpuser
FTP_PASSWORD=sftppass
JWT_SECRET=your-long-random-secret   # required in production
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Run with Docker Compose
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker-compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Use it
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Web UI:&lt;/strong&gt; &lt;a href="http://localhost:8080" rel="noopener noreferrer"&gt;http://localhost:8080&lt;/a&gt; (default login: &lt;code&gt;admin&lt;/code&gt; / &lt;code&gt;admin&lt;/code&gt; — change it right away).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Registry:&lt;/strong&gt; &lt;a href="http://localhost:5000" rel="noopener noreferrer"&gt;http://localhost:5000&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Push an image:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker tag nginx localhost:5000/mygroup/nginx:latest
docker push localhost:5000/mygroup/nginx:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pull:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker pull localhost:5000/mygroup/nginx:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Groups and repositories are created from the UI (or you can align with how you organize folders on SFTP). No auto-creation of top-level paths; you keep control over structure and access.&lt;/p&gt;




&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Go — Registry v2 + REST API, SQLite for metadata, JWT auth.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; React + Vite, served by nginx in Docker.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Images:&lt;/strong&gt; &lt;code&gt;troke12/refity-backend&lt;/code&gt; and &lt;code&gt;troke12/refity-frontend&lt;/code&gt; on Docker Hub (tags: &lt;code&gt;latest&lt;/code&gt;, &lt;code&gt;v1.0.0&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Who It's For
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Small teams or solo devs who want a private registry without cloud dependencies.&lt;/li&gt;
&lt;li&gt;Environments where SFTP is the only or preferred storage (e.g. existing storage boxes or restricted networks).&lt;/li&gt;
&lt;li&gt;Anyone who likes to self-host and keep image storage under their control.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/troke12/refity" rel="noopener noreferrer"&gt;github.com/troke12/refity&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docker Hub:&lt;/strong&gt; &lt;a href="https://hub.docker.com/r/troke12/refity-backend" rel="noopener noreferrer"&gt;refity-backend&lt;/a&gt; · &lt;a href="https://hub.docker.com/r/troke12/refity-frontend" rel="noopener noreferrer"&gt;refity-frontend&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you try it and have feedback or ideas, open an issue or discussion on GitHub.&lt;/p&gt;

</description>
      <category>docker</category>
      <category>selfhosted</category>
      <category>sftp</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
