gitlab docker 部署记

2018/10/9 posted in  DevOps comments

https://stackoverflow.com/questions/44056807/gitlab-docker-smtp
https://developer.ibm.com/code/2017/07/13/step-step-guide-running-gitlab-ce-docker/
https://docs.gitlab.com/omnibus/docker/
https://hub.docker.com/r/gitlab/gitlab-ce/

#!/bin/bash

sudo docker run --detach \
      --hostname 192.168.88.244 \
      --publish 80:80 --publish 10022:22 \
      --env "GITLAB_SHELL_SSH_PORT=10022" \
      --name gitlab \
      --restart always \
      --volume /srv/gitlab/config:/etc/gitlab \
      --volume /srv/gitlab/logs:/var/log/gitlab \
      --volume /srv/gitlab/data:/var/opt/gitlab \
      gitlab/gitlab-ce:latest