Skip to content

Instantly share code, notes, and snippets.

@u1-liquid
Created March 3, 2017 14:21
Show Gist options
  • Select an option

  • Save u1-liquid/503fd32c670707aff218844b56f7a620 to your computer and use it in GitHub Desktop.

Select an option

Save u1-liquid/503fd32c670707aff218844b56f7a620 to your computer and use it in GitHub Desktop.
Setup GitLab using Docker
#!/bin/sh
sudo docker pull gitlab/gitlab-ce:latest
sudo docker run --detach \
--hostname gitlab.some.where \
--publish 80:80 \
--publish 443:443 \
--publish 22:22 \
--name gitlab \
--restart always \
--volume /opt/gitlab/config:/etc/gitlab \
--volume /opt/gitlab/logs:/var/log/gitlab \
--volume /opt/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment