All hands-on labs

Premium Hands-on labintermediateAWS

Installing GitLab server on AWS

Learn how to install GitLab (Community Edition) on an AWS EC2 with Docker to set up your own private GitLab server which you can use to host repositories and practice learning how to use GitLab features.

  • 6 guided tasks
  • Terminal in the browser

Scenario

Note: while you can deploy this lab on its own, it was originally designed to be part of this course and lesson. If you feel you are missing context, we recommend going through the course material.

This lab gives you an empty Ubuntu server on Amazon EC2. Your goal is to install a self-hosted GitLab Community Edition server on it with Docker Compose, then sign in to the GitLab web UI as the root user.

Note: even after the lab environment has launched, it can still take a couple of minutes for the EC2 instance to be ready. If you try to SSH and get a connection time out, this is why. Wait a couple of minutes and try again.

What you will learn

  • Connect to an EC2 instance with EC2 Instance Connect from the AWS CLI
  • Install Docker and Docker Compose on an Ubuntu server
  • Run GitLab Community Edition in a container with Docker Compose
  • Get the initial root password and sign in to the GitLab web UI
Hands-on lab

Installing GitLab server on AWS

Included in Cybr Premium.