This page contains the instructions necessary to run Harness CE using Docker Compose.
- Install Docker and Docker Compose on your system
- 4 CPUs or more
- 4GB of free memory
- 20GB of free disk space
- Internet connection
- Increase Docker Desktop memory to 4GB and CPU to 4
For Docker Desktop, see Docker for Mac or Docker for Windows for details on increasing resources - Clone this repo
git clone git@github.com:harness/harness-cd-community.git cd harness-cd-community/docker-compose/harness
- If you are running Docker Desktop on Windows or Mac skip this step. If you are running on Linux or wish to run a production install then please see Advanced Configuration to set the hostname of your machine.
- Start harness
docker-compose up -d
- Wait for startup to complete
docker-compose run --rm proxy wait-for-it.sh ng-manager:7090 -t 180
- Open http://localhost/#/signup
- Complete the signup form
- You need to install a Harness delegate before you can run pipelines, see Install a Docker Delegate
- For help with getting started, read the Harness documentation
Harness supports multiple hardware profiles the default profile being laptop
for low resource environments
and production
for use in more demanding environments.
To run the production
profile use this startup command
docker-compose -f docker-compose.yml -f profile-production.yml up -d
docker-compose down
docker-compose down -v
- Update this repository
git pull
- Re-run docker compose
docker compose up -d
You simply need to set the HARNESS_HOST
environment variable, see Set hostname environment variable below.
- Set the
HARNESS_HOST
environment variable, this should be the IP address or hostname of the machine where you are deploying Harness. You cannot uselocalhost
.
Example,export HARNESS_HOST="192.168.0.1"
The above scripts will require connectivity to Dockerhub. In case connectivity to Dockerhub is not available, you can follow the steps as below
- Use the script download_images.sh to download the docker images.
- You can then tar this entire folder and copy it to the target VM
- Use the script unpack_images.sh to load the images onto the VM.
- Use the start.sh script to start Harness.