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
# 如果有其他的compose项目,最好每个 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
|
browser http://localhost:10080
UPDATE: 2018-10-10
1
2
3
4
5
6
7
8
9
10
| [root@redmine gitlab]# wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml
把postgres的版本改成 image: sameersbn/postgresql:9.6-2 (和redmine使用同一个版本)
[root@redmine ~]# ./docker-download-mirror.sh sameersbn/redis:4.0.9-1 sameersbn/gitlab:11.3.4
修改 GITLAB_HOST GITLAB_PORT
[root@redmine gitlab]# docker-compose up -d
然后加入到nginx进行统一访问。git.winseliu.com。。。
|
–END