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

相关推荐
陌殇殇殇7 小时前
使用GitLab CI构建持续集成案例
运维·ci/cd·云原生·容器·kubernetes·gitlab
吕玉生7 小时前
基于GitLab 的持续集成环境
ci/cd·gitlab
henan程序媛1 天前
jenkins项目发布基础
运维·gitlab·ansible·jenkins
极小狐3 天前
极狐GitLab 签约比博斯特,助力新能源智能底盘企业研发提效
gitlab·devsecops·devops·极狐gitlab·安全合规
YoungHong19923 天前
Gitlab服务搭建相关
gitlab
sj11637394034 天前
docker-compose安装gitlab
docker·容器·gitlab
Matrix705 天前
GIT安装及集成到IDEA中操作步骤
java·git·spark·gitlab·intellij-idea
ulimpid7 天前
Git | Dockerized GitLab 安装使用(简单实操版)
学习·docker·gitlab
hrlees7 天前
从零开始Ubuntu24.04上Docker构建自动化部署(四)Docker安装gitlab
docker·自动化·gitlab
C+ 安口木7 天前
在 Gitlab 中使用 ChatGPT 进行 CodeReview
chatgpt·gitlab·代码复审