Skip to main content

How to use custom DNS

Gitness can be configured to use a custom hostname.

Hostname

Set the GITNESS_URL_BASE environment variable to your hostname, including protocol (such as http://).

docker run -d \
-e GITNESS_URL_BASE=http://gitness.company.com \
-p 3000:3000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /mnt/gitness-data:/data \
--name gitness \
--restart always \
harness/gitness