This guide uses Docker Compose to run Gerrit in containers.
For Docker installation, see Docker.
cat <<'YAML' > docker-compose.yml
services:
gerrit:
image: gerritcodereview/gerrit:latest
restart: unless-stopped
ports:
- "8080:8080"
- "29418:29418"
volumes:
- gerrit-data:/var/gerrit
volumes:
gerrit-data:
YAML
docker compose up -d
Open http://YOUR-SERVER:8080 and complete the initial setup.
Running containers in production? We help with:
Need help? office@linux-server-admin.com or Contact Us