docker-compose 安装 和 gitlab安装

下载慢:
sudo curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
改为:
sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version

## gitlab的 docker-compose.yml
version: ‘3‘
services:
gitlab:
image: ‘gitlab/gitlab-ce:latest‘
container_name: gitlab
restart: always
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url ‘http://172.17.0.1:8929‘ #若有域名可以写域名
gitlab_rails[‘gitlab_shell_ssh_port‘] = 2224
ports:
- ‘8929:8929‘
- ‘2224:22‘
volumes:
#将相关配置映射到当前目录下的config目录
- ‘./config:/etc/gitlab‘
#将日志映射到当前目录下的logs目录
- ‘./logs:/var/log/gitlab‘
#将数据映射到当前目录下的data目录
- ‘./data:/var/opt/gitlab‘

docker-compose 安装 和 gitlab安装

上一篇:淘宝美工教程 Photoshop自行车产品修图处理


下一篇:Thinking in Ramda: Getting Started