Created
March 3, 2017 14:21
-
-
Save u1-liquid/503fd32c670707aff218844b56f7a620 to your computer and use it in GitHub Desktop.
Setup GitLab using Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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