From the course: AWS DevOps: Continuous Docker Deployment to AWS Fargate from GitLab

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Running GitLab in Docker

Running GitLab in Docker

From the course: AWS DevOps: Continuous Docker Deployment to AWS Fargate from GitLab

Start my 1-month free trial

Running GitLab in Docker

- [Instructor] Now we've arrived at the moment of truth. We are going to start up the GitLab server. Included with the exercise files is a text file with a sample Docker run command that we're going to paste into our server. Change the gitlab.example.com to your GitLab URL. So mine will be gitlab.simpleemailservice.org. So when we run this command, it's going to pull the latest Docker image of GitLab CE. It's also going to mount some volumes into our GitLab server container that are mapped into our host server. So for instance, we'll find the config file for GitLab on our host server in /srv/gitlab/config, but if we were actually inside the container, that exact same config file would be found in /etc/gitlab. The restart command will tell Docker to always restart this container when it crashes or when the host machine boots up. And you can see that this Docker container is also publishing some ports, so the container's port 22 is also going to map to port 22 on the host. And the same…

Contents