美文网首页
docker-compose 安装 gitlab-ce

docker-compose 安装 gitlab-ce

作者: forever_youyou | 来源:发表于2018-11-16 16:11 被阅读0次
# https://docs.gitlab.com/omnibus/docker/README.html#install-gitlab-using-docker-compose

version: "3.6"
services:
  gitlab:
    image: gitlab/gitlab-ce:latest
    container_name: my_gitlab
    restart: always
    ports:
    - "80:80"
    - "443:443"
    - "8822:22"
    volumes:
    - /data/gitlab/data:/var/opt/gitlab
    - /data/gitlab/logs:/var/log/gitlab
    - /data/gitlab/config:/etc/gitlab
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'http://192.168.20.220'
        # Add any other gitlab.rb configuration here, each on its own line
        gitlab_rails['gitlab_shell_ssh_port'] = 8822

这里ssh端口没有使用默认的 22

相关文章

网友评论

      本文标题:docker-compose 安装 gitlab-ce

      本文链接:https://www.haomeiwen.com/subject/qzvmfqtx.html