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

相关推荐
霸道流氓气质14 天前
GitLab CI/CD 完全指南
linux·ci/cd·gitlab
sbjdhjd15 天前
从零搭建企业级 CI/CD(下):Jenkins+GitLab+Harbor 全链路实战指南
git·servlet·ci/cd·云原生·云计算·gitlab·jenkins
用什么都重名16 天前
Git 合并两个无共同历史的分支:从报错到解决全记录
git·gitlab
master33616 天前
GitLab (Docker) 常用命令及解决方案清单
docker·容器·gitlab
qq_3564086616 天前
GitLab 单机私有化部署文档(基于 Docker 环境)
docker·gitlab
lisanmengmeng17 天前
gitlab 免密配置
linux·服务器·gitlab
求知若渴,虚心若愚。18 天前
Jenkins 自动化流水线(CICD)
运维·自动化·gitlab
mnasd20 天前
Gitlab + Jenkins 实现 CICD
运维·gitlab·jenkins
鹤鸣的日常20 天前
前端运行时动态环境变量方案
前端·react.js·docker·前端框架·vue·gitlab
starvapour20 天前
Ubuntu部署gitlab频繁出现502的问题
linux·ubuntu·gitlab