How to use custom DNS
Harness Open Source 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://harness.company.com \
-p 3000:3000 -p 3022:3022 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /mnt/harness-data:/data \
--name opensource \
--restart always \
harness/harness