Created
June 5, 2016 13:46
-
-
Save detj/abe4a2062d5649307d9191bbebeb2b38 to your computer and use it in GitHub Desktop.
Run Gitlab Docker Container
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/bash | |
# Replace hostname | |
HOSTNAME=[HOSTNAME HERE] | |
docker run --detach \ | |
--hostname $HOSTNAME \ | |
--publish 443:443 --publish 80:80 --publish 22:22 --publish 9418:9418 \ | |
--name gitlab \ | |
--restart always \ | |
--volume /data/gitlab/config:/etc/gitlab \ | |
--volume /data/gitlab/logs:/var/log/gitlab \ | |
--volume /data/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