docker安装gitlab 并dump出表结构

  • docker-compose docker compose up -d

    复制代码
    version: '3.6'
    services:
      web:
        image: 'gitlab/gitlab-ce:latest'
        restart: always
        hostname: 'localhost'
        environment:
          GITLAB_OMNIBUS_CONFIG: |
            external_url 'http://localhost:8929'
            gitlab_rails['gitlab_shell_ssh_port'] = 2224
        ports:
          - '8929:8929'
          - '2224:22'
        volumes:
          #- '$GITLAB_HOME/config:/etc/gitlab'
          #- '$GITLAB_HOME/logs:/var/log/gitlab'
          #- '$GITLAB_HOME/data:/var/opt/gitlab'
          - '/Users/yanlp/workspace/docker/gitlab_latest/config:/etc/gitlab'
          - '/Users/yanlp/workspace/docker/gitlab_latest/logs:/var/log/gitlab'
          - '/Users/yanlp/workspace/docker/gitlab_latest/data:/var/opt/gitlab'
        shm_size: '256m'
  • 登陆容器 docker ps -a docker exec -it 2d9f11bc4619 /bin/bash

  • 执行gitlab-rails dbconsole

  • 导出 gitlabhq_production=> \! pg_dump -U gitlab -d gitlabhq_production -s > /tmp/all.sql

相关推荐
极限实验室3 小时前
程序员爆哭!我们让 COCO AI 接管 GitLab 审查后,团队直接起飞:连 CTO 都说“这玩意儿比人靠谱多了
人工智能·gitlab
HIT_Weston1 天前
61、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(五)
前端·ubuntu·gitlab
HIT_Weston2 天前
60、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(四)
前端·ubuntu·gitlab
周杰伦_Jay2 天前
【GOFrame】模块化框架与生产级实践
开发语言·gitlab·github
丫丫学AI3 天前
gitlab-runner注册执行器
gitlab
yuguo.im3 天前
5 分钟快速入门 Gitlab CI/CD
ci/cd·gitlab·github
aoxiang_ywj3 天前
GitLab 子模块(子仓)更新到主仓的完整流程
gitlab
HIT_Weston4 天前
57、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(一)
前端·ubuntu·gitlab
HIT_Weston4 天前
58、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(二)
前端·ubuntu·gitlab
HIT_Weston4 天前
59、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(三)
前端·ubuntu·gitlab