码迷,mamicode.com
首页 > 其他好文 > 详细

从零开始devops-gitlab

时间:2020-05-27 17:11:23      阅读:629      评论:0      收藏:0      [点我收藏+]

标签:contain   dev   net   ports   ibus   rail   从零开始   volumes   gitlab   

https://blog.csdn.net/crper/article/details/81291034

version: ‘3.6‘
services:
  gitlab:
    container_name: gitlab
    hostname: ‘10.9.7.1‘
    image: gitlab/gitlab-ce:latest
    restart: always
    environment:
      GITLAB_OMNIBUS_CONFIG: |
            external_url ‘https://域名‘
    ports:
      - "80:80"
      - "443:443"
      - "2224:22"
    volumes:
      - "/data/gitlab/config:/etc/gitlab"
      - "/data/gitlab/logs:/var/log/gitlab"
      - "/data/gitlab/data:/var/opt/gitlab"

docker compose https://docs.gitlab.com/omnibus/docker/

web:
  image: ‘gitlab/gitlab-ce:latest‘
  restart: always
  hostname: ‘gitlab.example.com‘
  environment:
    GITLAB_OMNIBUS_CONFIG: |
      external_url ‘http://gitlab.example.com:8929‘
      gitlab_rails[‘gitlab_shell_ssh_port‘] = 2224
  ports:
    - ‘8929:8929‘
    - ‘2224:22‘
  volumes:
    - ‘$GITLAB_HOME/gitlab/config:/etc/gitlab‘
    - ‘$GITLAB_HOME/gitlab/logs:/var/log/gitlab‘
    - ‘$GITLAB_HOME/gitlab/data:/var/opt/gitlab‘

从零开始devops-gitlab

标签:contain   dev   net   ports   ibus   rail   从零开始   volumes   gitlab   

原文地址:https://www.cnblogs.com/franzlistan/p/12973811.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!