selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Gitness logo

Self-host Gitness

v2.28.2

Git hosting, CI/CD, dev environments, artifact registries

ReleaseOpen SourceApache-2.0
docker run -d -p 3000:3000 -p 3022:3022 -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/harness:/data --name harness --restart always harness/harness
Updated6 months ago
LanguageGo
Setup difficultyEasy
Stars
38 881
Ports
3000 (HTTP server (web UI, API, git clone URLs); settable via GITNESS_HTTP_PORT), 3022 (mapped in the documented docker run command alongside 3000)
Docker
harness/harness
Artifact registry list showing Docker, proxy, generic and Helm repositories with sizes and artifact counts

What is Gitness?

Harness Open Source is an Apache-2.0 licensed DevOps platform from Harness, aimed at engineering teams that want code hosting and delivery automation on their own hardware. A single container bundles Git repositories with pull requests, code reviews, protected branches and quality gates; YAML pipelines whose steps run inside Docker containers; on-demand Gitspaces development environments you can connect an IDE to; and an artifact registry covering Docker images, Helm charts and generic packages, including an upstream proxy. A migration feature can bring in projects from services such as GitHub, GitLab, Bitbucket or CircleCI in one click. Self-hosting is a single docker run mapping ports 3000 and 3022, mounting the Docker socket for pipeline execution and a volume at /data for storage; an embedded SQLite database is used by default and Postgres is optional. A full web UI, a Swagger-documented REST API and a small command-line tool named gitness round out the toolset. Development happens on the main branch with regular v2.x releases; the older Drone CI code continues as a separate feature branch.

Gitness alternatives

Should you self-host Gitness?

Gitness scores 80/100 on selfhost.directory (how scoring works) and ranks #2 of 15 in Code Hosting. It has 38 881 GitHub stars, +386 in the last 30 days.

It shipped 6 stable releases in the past year. The latest, v2.28.2, came out on 20 April 2026. New versions land roughly every 2 weeks.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is Gitea (89/100, 59 009 stars). It scores higher overall, so compare the two before you pick. See Gitness vs Gitea side by side.

Features

  • Artifact Registry
  • CI/CD Pipelines
  • CLI
  • Hosted development environments (Gitspaces)
  • Notifications and alerts
  • One-click migration from other forges
  • Pipeline templates
  • Protected branches
  • Pull requests and code review
  • Quality Gates
  • REST API
  • Secret scanning
  • Source code management
  • Upstream proxy registry
  • Web UI

Gitness README

Harness

Harness Open Source is an open source development platform packed with the power of code hosting, automated DevOps pipelines, hosted development environments (Gitspaces), and artifact registries.

Overview

Harness Open source is an open source development platform packed with the power of code hosting, automated DevOps pipelines, Gitspaces, and artifact registries.

Running Harness locally

How to install Gitness

Install Gitness with Docker

docker run -d \
  -p 3000:3000 \
  -p 3022:3022 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /tmp/harness:/data \
  --name harness \
  --restart always \
  harness/harness

Data lives in the /data volume; a bind mount or named volume is strongly recommended. The Docker socket is needed for pipeline execution.

How to configure Gitness

  • GITNESS_CI_CONTAINER_NETWORKSOptional comma-separated list of Docker networks attached to every pipeline step; requires GITNESS_URL_CONTAINER.
  • GITNESS_CI_PARALLEL_WORKERS2Optional number of parallel workers, each running a single pipeline.
  • GITNESS_DATABASE_DATASOURCEDatabase connection string; defaults to an embedded SQLite file, or a Postgres URI/key-value string.

    values: sqlite file path | postgres connection string

  • GITNESS_DATABASE_DRIVERsqlite3Database driver name; set to postgres when using your own Postgres server.

    values: sqlite3, postgres

  • GITNESS_DEBUGfalseSet DEBUG log level.

    values: true, false

Gitness releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

How can I handle SSL errors when using the default clone task?

Set clone.insecure=true to bypass them, or configure the Docker environment to trust the required certificates.

Can I override the default cloning task image used by Harness?

Yes; make the desired image available in the local Docker cache or use a Docker registry mirror, and Harness will use the locally cached image.

How can I avoid Harness from pulling the :latest tag of an image?

Use a specific version tag instead of :latest, or add pull: if-not-exists to the pipeline step so the image is only pulled when not already cached locally.

What images are required to run Harness Open Source offline?

The only essential image for running pipelines is drone/git; plugin images are optional.

How can I run Harness Open Source in an offline environment without internet access?

Pre-pull the needed Docker images on an online machine, export them with docker save and import them with docker load in the offline environment, or configure the Docker daemon to use a local registry mirror.

More in Code Hosting

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…