Skip to content

Instantly share code, notes, and snippets.

@yimeng
Created July 25, 2020 06:49
Show Gist options
  • Save yimeng/cdf32deef4347ca2b74d118cf6d9cf34 to your computer and use it in GitHub Desktop.
Save yimeng/cdf32deef4347ca2b74d118cf6d9cf34 to your computer and use it in GitHub Desktop.
gitlab docker install
sudo docker run --detach \
--hostname hostname \
--publish 443:443 --publish 80:80 --publish 2222:22 \
--name gitlab \
--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