Skip to content

Instantly share code, notes, and snippets.

@0ct0d4n
Created May 1, 2018 22:58
Show Gist options
  • Select an option

  • Save 0ct0d4n/015095c81194a202477ec65c345bd23a to your computer and use it in GitHub Desktop.

Select an option

Save 0ct0d4n/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