Remote GitLab CE provisioner (Docker‑Compose).
Rapid Cloud‑Native setup. Not intended for high‑availability enterprise production.
- GitLab root password:
gitlab - Default ports: HTTP 80, HTTPS 443, Registry 5050, SSH 22
- Docker Engine + Docker Compose installed
- Root (or sudo) SSH access
- Minimum resources: 4 CPU cores, 4 GiB RAM, 25 GiB free disk space
cd modules/01-gitlab-setup
./execute.shThe script will:
- Prompt for target IP, SSH port, and authentication method.
- Validate SSH connectivity.
- Verify hardware specs and that no GitLab container is already running.
- Detect port conflicts and allow custom ports.
- Generate an enterprise‑grade
docker-compose.ymland transfer it to/root/workspace/gitlab/on the remote host. - Run
docker compose up -dremotely. - On success, print the remote URL.
- Live logs:
ssh -p <SSH_PORT> root@<TARGET_IP> "docker logs -f gitlab" - Initial root password:
ssh -p <SSH_PORT> root@<TARGET_IP> "docker exec -it gitlab cat /etc/gitlab/initial_root_password" - Customisation: edit the generated
docker-compose.ymlon the remote host (path/root/workspace/gitlab/) to changeexternal_url, resource limits, or volume locations, then rundocker compose up -dagain.
If the script is interrupted (Ctrl+C) or any step fails, it automatically:
- Stops any partially started containers
- Removes
/root/workspace/gitlab/on the remote host - Restores any altered host configuration
© Davoud Teimouri – StratoShell project