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

docker-compose部署gitlab

时间:2020-07-31 12:34:37      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:services   art   log   gitlab   dock   time   rail   smt   service   

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

标签:services   art   log   gitlab   dock   time   rail   smt   service   

原文地址:https://blog.51cto.com/14482279/2515249

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