-
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
docker安装gitlab 并dump出表结构
it&s me2023-11-23 15:11
相关推荐
陌殇殇殇7 小时前
使用GitLab CI构建持续集成案例吕玉生7 小时前
基于GitLab 的持续集成环境henan程序媛1 天前
jenkins项目发布基础极小狐3 天前
极狐GitLab 签约比博斯特,助力新能源智能底盘企业研发提效YoungHong19923 天前
Gitlab服务搭建相关sj11637394034 天前
docker-compose安装gitlabMatrix705 天前
GIT安装及集成到IDEA中操作步骤ulimpid7 天前
Git | Dockerized GitLab 安装使用(简单实操版)hrlees7 天前
从零开始Ubuntu24.04上Docker构建自动化部署(四)Docker安装gitlabC+ 安口木7 天前
在 Gitlab 中使用 ChatGPT 进行 CodeReview