https://github.com/sameersbn/docker-gitlab
第三方镜像仓库
http://www.damagehead.com/docker-gitlab/
项目下载地址
wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml
curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s-uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version
运行
docker-compose up -d
[root@rmaster02 Gitlab]# docker-compose up -d
Starting gitlab_redis_1 ... done
Starting gitlab_postgresql_1 ... done
Starting gitlab_gitlab_1 ... done
[root@rmaster02 Gitlab]#
[root@rmaster03 home]# sudo mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
[root@rmaster03 home]# sudo chmod +x /usr/local/bin/docker-compose
[root@rmaster03 home]# docker-compose version
docker-compose version 1.26.0, build d4451659
docker-py version: 4.2.1
CPython version: 3.7.7
OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
[root@rmaster03 home]#
[root@rmaster03 home]# cd Gitlab/
[root@rmaster03 Gitlab]#
[root@rmaster03 Gitlab]#
[root@rmaster03 Gitlab]# ll
total 4
-rw-r----- 1 root root 4069 Jun 7 09:34 docker-compose.yml
[root@rmaster03 Gitlab]# docker-compose up -d
Creating network "gitlab_default" with the default driver
Creating volume "gitlab_redis-data" with default driver
Creating volume "gitlab_postgresql-data" with default driver
Creating volume "gitlab_gitlab-data" with default driver
Pulling redis (redis:5.0.9)...
5.0.9: Pulling from library/redis
afb6ec6fdc1c: Pull complete
608641ee4c3f: Pull complete
668ab9e1f4bc: Pull complete
846bf5faff48: Pull complete
affafbdb5f81: Pull complete
1bdd19e53172: Pull complete
Digest: sha256:08aab527ca57f536f2805e031535a6881bab63171146aa6414de69d54b14a84d
Status: Downloaded newer image for redis:5.0.9
Pulling postgresql (sameersbn/postgresql:11-20200524)...
11-20200524: Pulling from sameersbn/postgresql
23884877105a: Pull complete
bc38caa0f5b9: Pull complete
2910811b6c42: Pull complete
36505266dcc6: Pull complete
0d042ed0a4c9: Pull complete
632fd4917d7d: Pull complete
1cf559a04a8e: Pull complete
b8ebfda0bc16: Pull complete
f41f9f9ce659: Pull complete
288ccc061870: Pull complete
a9dd50b1260a: Pull complete
Digest: sha256:d07e2bbadd218cf8f8b2f06820da48f9957ada61dd711e6a7ef5aa3f5c3c0205
Status: Downloaded newer image for sameersbn/postgresql:11-20200524
Pulling gitlab (sameersbn/gitlab:13.0.5)...
13.0.5: Pulling from sameersbn/gitlab
23884877105a: Already exists
bc38caa0f5b9: Already exists
2910811b6c42: Already exists
36505266dcc6: Already exists
660064adaf4c: Pull complete
8738cec6afb4: Pull complete
8c49e7e2c222: Pull complete
d7040376214d: Pull complete
909555385656: Pull complete
ce119c3f7532: Pull complete
b7d9ced768c1: Pull complete
Digest: sha256:2f2a1709dc122d0a309045f558f95605a8a61c8c62dea5a4c0fae6241cdae2b1
Status: Downloaded newer image for sameersbn/gitlab:13.0.5
Creating gitlab_redis_1 ... done
Creating gitlab_postgresql_1 ... done
Creating gitlab_gitlab_1 ... done
[root@rmaster03 Gitlab]# docker-compose ps
Name Command State Ports
------------------------------------------------------------------------------------------------------------------------------------
gitlab_gitlab_1 /sbin/entrypoint.sh app:start Up (health: starting) 0.0.0.0:10022->22/tcp, 443/tcp, 0.0.0.0:10080->80/tcp
gitlab_postgresql_1 /sbin/entrypoint.sh Up 5432/tcp
gitlab_redis_1 docker-entrypoint.sh --log ... Up 6379/tcp
[root@rmaster03 Gitlab]#