Skip to content

Instantly share code, notes, and snippets.

@DanyelMorales
Created May 1, 2018 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanyelMorales/015095c81194a202477ec65c345bd23a to your computer and use it in GitHub Desktop.
Save DanyelMorales/015095c81194a202477ec65c345bd23a to your computer and use it in GitHub Desktop.
install gitlab container for docker
#!/usr/bin/env bash
container="gitlab";
base="PATH_TO_YOUR_HOME/gitlab";
config=$base"/config";
logs=$base"/log";
data=$base"/data";
docker run --detach --publish 443:443 --publish 8580:80 --publish 8522:22 --name $container --restart always --volume $config:/etc/gitlab --volume $logs:/var/log/gitlab --volume $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