Winse Blog

走走停停, 熙熙攘攘, 忙忙碌碌, 不知何畏.

Gitlab on Docker

1
2
3
4
5
6
7
8
9
10
11
12
13
./docker-download-mirror.sh sameersbn/redis sameersbn/gitlab:10.1.4 sameersbn/postgresql:9.6-2

# 最好,每个 docker-compose.yml 放不同的目录名称下!!
mkdir gitlab
cd !*

wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml
sed -i '/GITLAB_HOST/s/.*/    - GITLAB_HOST=192.168.193.8/' docker-compose.yml 

docker-compose up -d

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload

–END

Comments