docker-compose部署gitlab
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker-compose部署gitlab相关的知识,希望对你有一定的参考价值。
vim docker-compose.yml
version: ‘3.1‘
services:
gitlab:
image: ‘twang2218/gitlab-ce-zh:11.1.4‘
container_name: "gitlab"
restart: always
privileged: true
hostname: ‘gitlab‘
environment:
TZ: ‘Asia/Shanghai‘
GITLAB_OMNIBUS_CONFIG: |
gitlab_rails[‘time_zone‘] = ‘Asia/Shanghai‘
gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘gitlab_shell_ssh_port‘] = 22
ports:
- ‘80:80‘
- ‘443:443‘
- ‘22:22‘
volumes:
- /opt/docker_gitlab/config:/etc/gitlab
- /opt/docker_gitlab/data:/var/opt/gitlab
- /opt/docker_gitlab/logs:/var/log/gitlab
docker-compose up -d
以上是关于docker-compose部署gitlab的主要内容,如果未能解决你的问题,请参考以下文章