Best source code hosting platforms for air-gapped and on-premises networks

GitLab Self-Managed has the most fully documented offline install path, but it still needs manual transfers for some scanning data and disabled checks. Forgejo has offline settings that need confirmation for install and runners, and SaaS-only Git hosts do not fit this constraint.

On this page

Which source code hosting platforms fit air-gapped and on-premises networks

Start with GitLab Self-Managed if you need the most fully documented offline path. GitLab publishes a GitLab offline quick start guide for installing, configuring and using an instance entirely offline, using the Linux package on Ubuntu 24.04, with packages downloaded on a connected machine and moved by physical media. Treat the guide as a checklist of gaps that remain after installation. The Package Metadata Database cannot be downloaded by an offline instance, yet continuous vulnerability scanning and license scanning of CycloneDX files depend on it, so someone must fetch it on a connected machine and copy it across. Runner version management must be disabled offline, the Geo check Rake task always fails offline because it uses pool.ntp.org, and the version check and Service Ping must be turned off so the instance stops contacting version.gitlab.com.

Forgejo has offline settings whose install and runner steps still need confirmation before you commit to it. Its configuration cheat sheet describes OFFLINE_MODE, which defaults to true and disables CDNs for static files and Gravatar for profile pictures. The same Forgejo configuration cheat sheet lists other settings that default to external services: repository badges are generated through img.shields.io, user location maps use OpenStreetMap, and webhooks can call any public host unless you restrict them. A cron task also checks for new Forgejo versions. Review each of these in your configuration before go-live. Confirm the offline installation procedure and the runner setup for Forgejo Actions, which hands workflows to separate runners, with Forgejo directly. Gitea's offline install and runner path is not established for this comparison, so confirm it with its maintainers before Gitea goes on the shortlist.

Vendor-hosted SaaS Git hosts do not fit a network with no internet route, because the service, its CI runners and its updates all run outside your environment. Licensing needs its own check on the self-managed side. GitLab's source is open core: content outside the ee/ directory is available under the MIT Expat license, but content in ee/ is licensed under the GitLab Enterprise Edition license and is not OSI open source. A team that requires OSI-approved licensing should confirm exactly which code it will run and get the terms in writing. On cost, GitLab pricing lists GitLab Free at 0 US dollars and Premium at 29 US dollars per user per month billed annually, with Ultimate custom priced, and all three tiers are available for self-managed installations. Ask the vendor how offline licenses, scanner data and self-hosted AI features are priced and renewed.

What each platform still needs from outside the network

This table compares what each source code hosting option still needs from outside the network after an offline install. Read the middle column for what the vendor documents as workable offline, and the right column for the items that still need a staging machine, a settings change, or a vendor agreement. The main takeaway: GitLab has a documented offline path with several manual steps, Forgejo's offline default covers only part of its outbound calls, and SaaS does not fit this constraint.

OptionFits the constraint as documentedWhat still needs a connection or vendor service
GitLab Self-Managed, Linux packageOffline install guide covers the Linux package on Ubuntu 24.04, with packages downloaded on a connected machine.Packages move on physical media, so plan a staging machine and transfer process. Confirm the guide matches your OS version.
GitLab Package Metadata DatabaseOffline guide covers the database behind vulnerability scanning and license scanning of CycloneDX files.An offline instance cannot download it. A connected machine must fetch it, then copy it in.
GitLab runner versions and Geo checkOffline guide says to disable runner version management, so the instance does not check for newer versions.The Geo check fails offline because it uses pool.ntp.org. Record it as expected and handle runner upgrades from media.
GitLab version check and Service PingGuide says to disable the version check and Service Ping to stop contact with version.gitlab.com.With an offline license, disabling Service Ping stops it from sending data. Confirm the license terms with GitLab.
GitLab paid tiersFree, Premium and Ultimate all run self-managed. Code under ee/ is proprietary and needs a subscription.Premium is listed at 29 US dollars per user per month, billed annually (GitLab pricing page). Ultimate needs a quote.
Forgejo OFFLINE_MODEOFFLINE_MODE, default true, stops CDN use for static files and Gravatar for profile pictures.Confirm the offline install and runner path with Forgejo before committing to it.
Forgejo badges, maps, webhooks and updatesThe configuration cheat sheet lists each as an external default that needs review.Badges use img.shields.io, maps use OpenStreetMap, webhooks reach any public host by default, and the update checker runs.
Commercial SaaS code hostingDoes not fit. The service runs only in the vendor's cloud.Not applicable offline. Any use depends on a live connection to the vendor's service.

What an air-gapped network demands of source code hosting platforms

Air-gapped Git hosting starts from three demands. The first is that software and updates arrive through an approved transfer process. Packages, container images, runner binaries and vulnerability databases must be fetched on a connected machine, checked, and carried across by the route your security team has approved. The second is that the server must not depend on outside services for version checks, telemetry, metadata or scanner data. A forge that asks a vendor endpoint for the latest version, or that expects a public feed before its scanners return results, will fail or degrade quietly inside a closed network. The third is that every feature which fetches from the internet needs either a planned copy or a disabled setting. Each one needs a written decision that is checked against the running system.

The release cadence changes shape offline. A regular minor release stream on a connected network becomes a transfer schedule: someone must pull each release, its matching runner and any security fixes, move them through the approved path, and install them within the window your change process allows. Forgejo's stable and LTS tracks work the same way, so the track you pick sets how often that cycle repeats. Before choosing a platform, map the features you will actually use, such as CI runners, the container registry, security scanners, AI features, webhooks, badges, avatars and maps. Each feature either gets a copy planned into the transfer process or a disabled setting. That list shapes the operating effort more than the headline license does.

The vendors document this work in different detail. The GitLab offline quick start guide is explicit about the gaps: the Package Metadata Database needed for vulnerability and license scanning must be fetched on a connected machine and copied over, runner version management has to be disabled, the Geo check Rake task fails offline because it uses pool.ntp.org, and the version check and Service Ping need to be turned off. Forgejo's OFFLINE_MODE setting defaults to true and stops CDN and Gravatar use, but its configuration cheat sheet also lists badge generation through img.shields.io, maps through OpenStreetMap, webhooks that reach any public host by default, and an update checker cron task. Confirm each item against the exact version you install, since defaults change between releases.

GitLab and Forgejo under the offline constraint at a glance

Four options sit at different points on the offline line. GitLab Community Edition and Forgejo can run without a connection, but both have default contacts and license terms to review, while GitLab's paid ee/ features and vendor-hosted services add subscription or connection constraints that can change the decision.

GitLab Community Edition

GitLab Community Edition is the code outside the ee/ directory, and that code is MIT licensed. GitLab documents a full offline install using the Linux package on Ubuntu 24.04, with packages carried in on physical media. Plan for the parts that reach out: the Package Metadata Database must be fetched on a connected machine and copied over, Runner version management must be disabled, and the version check and Service Ping must be turned off. Choose it when you want GitLab's Git and CI workflow without a subscription and your team can run these offline steps.

Offline quick start

GitLab ee/ features

Files in the ee/ directory fall under the GitLab Enterprise Edition license, which is proprietary, sold by paid subscription, and not open source under the OSI definition. Premium adds advanced CI/CD and priority support, while Ultimate adds application security testing, software supply chain security, vulnerability management and compliance features. Premium is billed per user, annually, and Ultimate is custom priced, with all three tiers available for self-managed installations. Budget offline scanning work, since the Package Metadata Database must be copied in for vulnerability and license scanning. Choose it when you need those paid features and your procurement accepts a subscription.

Premium per user monthly
29 US dollars
GitLab pricing page

Forgejo

Forgejo is GPL-3.0-or-later from v9.0 onward and MIT for earlier versions, and Codeberg e.V. owns its domains while project governance stays independent. Offline mode is on by default through OFFLINE_MODE, which turns off CDN-hosted static files and Gravatar, but badges, OpenStreetMap maps and webhooks to any public host still need review. Disable the cron.update_checker task if the instance should not look for new versions. Forgejo Actions is built in and designed to feel familiar to GitHub Actions users, but it is not compatible with GitHub Actions, so migrated workflows need review. Choose it when GPL terms and community governance match your policy.

v15 LTS support ends
July 15, 2027
Forgejo configuration cheat sheet

Vendor-hosted Git services

Hosted Git platforms run in the vendor's cloud, so source code, CI execution and administration sit outside your network and depend on a connection to that service. They do not fit an air-gapped network, and they fit an on-premises network only when the vendor offers a self-managed deployment that runs inside your own boundary. Ask the vendor which components contact its cloud, which features need that service, and whether the license terms allow a disconnected installation. Choose a hosted service only when the network can reach the vendor and your compliance team has reviewed data residency and contract terms.

Operating source code hosting platforms on-premises, update by update

GitLab Self-Managed updates follow a fixed calendar, so most of the work is planning against known release dates. Minor releases ship monthly on the third Thursday, and the GitLab maintenance policy describes security backports to the current and previous two releases. Offline installs are a separate effort: GitLab's offline guide walks through the Linux package on Ubuntu 24.04, with packages downloaded on a connected machine and carried in on physical media.

  • Monthly minor releases: each minor version ships on the third Thursday of the month, so set a recurring change window that matches it.
  • Security backports: fixes go to the current and previous two releases, so your exposure window depends on which line you run.
  • Maintained lines: the policy lists 19.5, 19.4 and 19.3 as maintained, so check that list before you pin a version.
  • Upgrade paths: GitLab's upgrade paths page sets the required stop points between versions, and each stop adds another offline media transfer.
  • Package metadata: the Package Metadata Database used for vulnerability and license scanning must be fetched on a connected machine and copied in.

Before you commit to a schedule, confirm the current maintained lines and the upgrade stops for your starting version, and count how many transfers each hop adds to the window.

How GitLab's offline guide shapes a self-managed install

Treat GitLab's offline guide as the install checklist for an air-gapped GitLab, because it changes what the instance does from the first day. The offline quick start guide uses the Linux package on Ubuntu 24.04, with packages downloaded on a connected machine and moved into the network by physical media. One item needs extra planning. The Package Metadata Database, which continuous vulnerability scanning and license scanning of CycloneDX files depend on, cannot be downloaded by an offline instance. Someone must fetch it on a connected machine and copy it over, so build that step into your update cadence, because scanner data goes stale without it. Confirm the current file set and transfer procedure in the guide before you schedule the first import.

Several defaults reach out to the internet, and the guide tells you to switch them off. Disable the version check and Service Ping so the instance stops contacting version.gitlab.com. Under an offline license, disabling Service Ping stops the instance from sending it, so confirm with your license terms how usage reporting is handled before go-live. Runner version management must also be disabled offline, because it otherwise asks GitLab for the latest versions. Expect the Geo check Rake task to fail on an offline network, since it uses pool.ntp.org. Record that failure in your runbook so an auditor or new administrator does not treat it as a fault to fix.

Two best-practice guides cover the parts most likely to block a regulated rollout: running GitLab Secure scanners offline, and deploying GitLab Duo Self-Hosted offline. Read both before you settle the scanning design, because the scanner setup determines what data the Package Metadata Database must supply. Scanning is also a separate subscription decision. The GitLab pricing page lists application security testing, software supply chain security, vulnerability management and compliance features under Ultimate, and lists advanced CI/CD and priority support under Premium, so confirm the tier for each scanner and Duo feature you plan to use before you budget for the rollout. Get that tier mapping in writing from GitLab.

How updates and packages move into the restricted network

The flow starts on a connected staging host that downloads GitLab packages, the Package Metadata Database and Forgejo binaries. Those files are written to approved media, pass change control review, and enter the restricted network as an internal package store. GitLab and its runners install from that store, and Forgejo follows the same path. On the GitLab side, the version check and Service Ping are disabled. For Forgejo, OFFLINE_MODE is on by default, but its update checker and webhook defaults still need review. Confirm each step against your own change control.

Illustrative flow of packages and settings into a restricted network.

Which Forgejo settings keep traffic inside the network

Start with OFFLINE_MODE, which the Forgejo configuration cheat sheet describes as defaulting to true. It disables the use of CDNs for static files and Gravatar for profile pictures, and that is all it covers. Several other defaults still reach external services: repository badge generation calls img.shields.io, user location maps load from OpenStreetMap, and webhooks may call any public host unless you restrict them. Each one needs a decision before go-live: disable the feature, narrow the webhook destinations, or document the outbound path for your security team. Check the effective values in your app.ini instead of trusting the defaults.

The cron.update_checker task checks for new Forgejo versions, so it creates an outbound request on a schedule even when nobody is upgrading. Confirm whether it runs in your deployment and what it does when the check cannot reach the internet, then record the answer in your change log. Forgejo Actions is the built-in CI system, and it hands workflows to separate runners. It is designed to be familiar to GitHub Actions users, but it is not compatible with GitHub Actions, so migrated workflows need review. Runner connectivity must be confirmed: map which hosts each runner reaches to fetch jobs and actions, and whether any of those hosts sit outside your network. The Forgejo Actions overview is the starting point for that map.

A configuration setting is not the same as a documented offline install. OFFLINE_MODE and the other keys above change what the running instance tries to reach, but they do not describe how to move packages, binaries, runner software and updates into a disconnected network. Before you commit, ask Forgejo or your implementation partner to confirm the install path for your environment, including how updates arrive, how runners receive their software and who tests the result. Treat the settings as a checklist for that review, and verify each one against the version you actually deploy.

What buyers ask before hiring help for an air-gapped Git host

How much effort does an offline GitLab or Forgejo install take?

Effort depends mostly on how much of the platform your team uses, how software and metadata reach the isolated network, and how SSO and backups are designed. GitLab's offline guide covers a Linux package install on Ubuntu 24.04, with packages downloaded on a connected machine and moved by physical media, so the transfer process recurs with every update. Extra features add work. The Package Metadata Database, needed for vulnerability and license scanning, must be fetched on a connected machine and copied over, and scanners and GitLab Duo Self-Hosted have separate offline guides. Forgejo's effort follows the same drivers, and its configuration reference shows which external services are called by default. Ask any provider for a written breakdown of these items before comparing offers.

How long does an air-gapped Git host take to set up?

No reliable timeline can be given without a defined scope, so ask for a written scope and timeline before comparing offers. Duration depends on the number of instances, whether you run GitLab, Forgejo or both, which features need offline data, how many approval steps your change process requires, and how long network owners take to open transfer paths. Each transfer cycle adds time, so the number of updates you plan to support during the first year matters. A usable quote should list the phases: environment preparation, offline package transfer, installation, SSO and backup configuration, validation and handover. Each phase should name who does the work and what the client must provide. DeployOpen delivers fixed-scope engagements, and deliverables and timelines are agreed in writing before work starts, so that written scope is the document to compare.

What does an offline Git host project need from our own team?

The project needs your team to approve changes, grant admin access, open network paths and allocate storage, and these items often set the pace more than the software does. Expect change control records for each transfer and each upgrade, because the software enters the network through a controlled import. Admin access is needed for the Git host, the identity provider, the database and the backup targets, so decide early who holds those roles and who approves them. Network owners must confirm which transfer media, firewall rules and internal DNS names are allowed, and how offline systems trust your internal certificate authority. Storage planning covers repositories, CI artifacts, package metadata and backups, which grow over time. Ask the provider to list each of these as a client dependency in the written scope.

Can our own team install GitLab offline using the official guide?

Yes, a capable team can follow GitLab's offline quick start guide, which covers installing, configuring and using a Self-Managed instance without internet access on Ubuntu 24.04 with the Linux package. The guide is a starting point. Your team still has to handle the package transfer, the Package Metadata Database, disabling Runner version management, and turning off the version check and Service Ping. Expect the Geo check Rake task to fail offline, because it uses pool.ntp.org. For Forgejo, the configuration reference sets OFFLINE_MODE to true by default, but badge generation, user location maps, webhooks and the update checker still reach external services unless you change those settings. Confirm whether an offline install guide exists for your Forgejo version. Hire help if no one on the team can own upgrades and transfers over time.

How much does a GitLab subscription cost compared with services?

The subscription and the services fee are separate purchases paid to different parties. According to GitLab's pricing page, the Free tier costs 0 US dollars, Premium costs 29 US dollars per user per month billed annually, and Ultimate is custom priced, with all three tiers available for self-managed installations. The subscription recurs and scales with seats and tier. Premium adds advanced CI/CD and priority support, while Ultimate adds application security testing, software supply chain security, vulnerability management and compliance features. The services fee covers the initial build and is one-time unless you buy an ongoing retainer for upgrades, testing or support. DeployOpen does not publish a price list. A quote follows from the written scope, which should list instances, features, integrations and handover items. Ask for subscription and services lines to be shown separately.

How do upgrades and release cadence change the transfer schedule?

Each upgrade requires a new transfer cycle, so the release rhythm sets how often your team runs the full process. GitLab releases a minor version monthly on the third Thursday and backports security fixes to the current and previous two releases, so a team that falls behind must move through a planned upgrade path. Forgejo stable releases receive full support for three months plus a two-week window. LTS releases, published in the first quarter of each year, receive critical bugfixes and security support for one year and three months. Forgejo's LTS track therefore produces fewer, larger transfers, while its stable track produces more frequent ones. Build a transfer calendar in writing, check the GitLab upgrade paths documentation before each jump, and agree in the scope whether upgrades are one-time work or a retainer. Confirm the exact support windows for the version you plan to run.

How DeployOpen deploys and runs a Git host inside your network

DeployOpen plans, implements and hardens self-hosted Git platforms inside your own cloud accounts, data centers or air-gapped networks. For a Git host in an isolated network, the work starts with identifying which features still reach outside services. Each engagement is fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope names each Git platform, its version and the networks it will run in.
  • It lists which features need outside services, such as GitLab's Package Metadata Database or Forgejo's badge services.
  • Engagements are fixed-scope, and ongoing support can be added later as a retainer.

How we build

  • GitLab packages and its Package Metadata Database are fetched on a connected machine, then copied in.
  • Calls to outside hosts are disabled, including GitLab's version check, Service Ping and runner version lookups.
  • For Forgejo, OFFLINE_MODE, webhook destinations and the update checker are set in configuration and verified.

How we hand over

  • Architecture, configuration and offline update steps are written down for your operations and security teams.
  • A list of offline limits is documented, including GitLab's Geo check task, which always fails without internet access.
  • Security testing can confirm the platform does not reach outside services, if that is in the agreed scope.

How we support

  • Retainers can cover ongoing support, upgrades and continuous testing as platform versions move forward.
  • Upgrades follow each vendor's support window, such as Forgejo's LTS releases receiving one year and three months of support.
  • Offline update packages need a planned transfer cycle, so the update calendar is agreed during scoping.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.