Skip to main content

Posts

Showing posts from February, 2018

PART 1: Gitlab:latest and docker

I've been exercising with Digital Ocean and my need to get gitlab running in such a way that I can publish or register container instances. Sure I could use the public FREE version but I really want to integrate with my own CI/CD and so on.

So there is a lot going on... launch gitlab as a container:

docker run --detach \
    --hostname git.example.com \
    --publish 443:443 --publish 80:80 --publish 2222:22 \
    --name gitlab \
    --restart always \
    --volume /srv/gitlab/config:/etc/gitlab \
    --volume /srv/gitlab/logs:/var/log/gitlab \
    --volume /srv/gitlab/data:/var/opt/gitlab \
    gitlab/gitlab-ce:latest

This is going to launch the container for you, however, one important point is that there is no SSL here and it's quite complicated so to start this is the wrong way to start the container... instead this is preferred:
docker run --detach \
    --hostname git.example.com \
    --publish 10443:443 --publish 10080:80 --publish 10022:22 \
    --name gitlab \
    --restart always…