从零开始devops-gitlab
Posted franzlistan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了从零开始devops-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的主要内容,如果未能解决你的问题,请参考以下文章