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

相关推荐
1candobetter15 小时前
GitLab 项目创建与分支管理全流程
gitlab
林鸿群2 天前
Ubuntu 26.04 本地安装 GitLab CE 完整教程(非 Docker 方式)
linux·ubuntu·gitlab·私有部署·代码托管·ubuntu 26.04·omnibus
ascarl20103 天前
IDEA 一直弹 GitLab 登录,VS Code 却能正常 `git push`?问题排查记录
git·gitlab·intellij-idea
企鹅郁金香5 天前
Gitlab和Confluence和Svn的备份
svn·gitlab·confluence·gitlab备份·svn备份·confluence备份
barbyQAQ5 天前
GitLab CI/CD 基本用法指南
java·ci/cd·gitlab
云中飞鸿6 天前
git、svn;TortoiseGit、TortoiseSVN;gitlab、github、bitbucket、bamboo有什么关系?
git·svn·gitlab
007张三丰8 天前
掌握核心!Git最常用的15个命令行:从入门到实战详解
git·gitlab·github·git命令行·常用命令行
人间打气筒(Ada)10 天前
gitlab私有仓库搭建
运维·gitlab·项目实战·devops·代码部署实战·版本控制仓库
黑蛋同志10 天前
Rocky Linux 10 上搭建 社区版 GitLab CE
linux·运维·gitlab
gpio_0110 天前
自建gitlab服务器并用sakurafrp穿透
运维·服务器·gitlab