https://github.com/sameersbn/docker-gitlab

    第三方镜像仓库
    http://www.damagehead.com/docker-gitlab/

    项目下载地址
    wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml

    1. curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s-uname -m` -o /usr/local/bin/docker-compose
    2. chmod +x /usr/local/bin/docker-compose
    3. docker-compose --version

    运行
    docker-compose up -d

    1. [root@rmaster02 Gitlab]# docker-compose up -d
    2. Starting gitlab_redis_1 ... done
    3. Starting gitlab_postgresql_1 ... done
    4. Starting gitlab_gitlab_1 ... done
    5. [root@rmaster02 Gitlab]#
    1. [root@rmaster03 home]# sudo mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
    2. [root@rmaster03 home]# sudo chmod +x /usr/local/bin/docker-compose
    3. [root@rmaster03 home]# docker-compose version
    4. docker-compose version 1.26.0, build d4451659
    5. docker-py version: 4.2.1
    6. CPython version: 3.7.7
    7. OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
    8. [root@rmaster03 home]#
    9. [root@rmaster03 home]# cd Gitlab/
    10. [root@rmaster03 Gitlab]#
    11. [root@rmaster03 Gitlab]#
    12. [root@rmaster03 Gitlab]# ll
    13. total 4
    14. -rw-r----- 1 root root 4069 Jun 7 09:34 docker-compose.yml
    15. [root@rmaster03 Gitlab]# docker-compose up -d
    16. Creating network "gitlab_default" with the default driver
    17. Creating volume "gitlab_redis-data" with default driver
    18. Creating volume "gitlab_postgresql-data" with default driver
    19. Creating volume "gitlab_gitlab-data" with default driver
    20. Pulling redis (redis:5.0.9)...
    21. 5.0.9: Pulling from library/redis
    22. afb6ec6fdc1c: Pull complete
    23. 608641ee4c3f: Pull complete
    24. 668ab9e1f4bc: Pull complete
    25. 846bf5faff48: Pull complete
    26. affafbdb5f81: Pull complete
    27. 1bdd19e53172: Pull complete
    28. Digest: sha256:08aab527ca57f536f2805e031535a6881bab63171146aa6414de69d54b14a84d
    29. Status: Downloaded newer image for redis:5.0.9
    30. Pulling postgresql (sameersbn/postgresql:11-20200524)...
    31. 11-20200524: Pulling from sameersbn/postgresql
    32. 23884877105a: Pull complete
    33. bc38caa0f5b9: Pull complete
    34. 2910811b6c42: Pull complete
    35. 36505266dcc6: Pull complete
    36. 0d042ed0a4c9: Pull complete
    37. 632fd4917d7d: Pull complete
    38. 1cf559a04a8e: Pull complete
    39. b8ebfda0bc16: Pull complete
    40. f41f9f9ce659: Pull complete
    41. 288ccc061870: Pull complete
    42. a9dd50b1260a: Pull complete
    43. Digest: sha256:d07e2bbadd218cf8f8b2f06820da48f9957ada61dd711e6a7ef5aa3f5c3c0205
    44. Status: Downloaded newer image for sameersbn/postgresql:11-20200524
    45. Pulling gitlab (sameersbn/gitlab:13.0.5)...
    46. 13.0.5: Pulling from sameersbn/gitlab
    47. 23884877105a: Already exists
    48. bc38caa0f5b9: Already exists
    49. 2910811b6c42: Already exists
    50. 36505266dcc6: Already exists
    51. 660064adaf4c: Pull complete
    52. 8738cec6afb4: Pull complete
    53. 8c49e7e2c222: Pull complete
    54. d7040376214d: Pull complete
    55. 909555385656: Pull complete
    56. ce119c3f7532: Pull complete
    57. b7d9ced768c1: Pull complete
    58. Digest: sha256:2f2a1709dc122d0a309045f558f95605a8a61c8c62dea5a4c0fae6241cdae2b1
    59. Status: Downloaded newer image for sameersbn/gitlab:13.0.5
    60. Creating gitlab_redis_1 ... done
    61. Creating gitlab_postgresql_1 ... done
    62. Creating gitlab_gitlab_1 ... done
    63. [root@rmaster03 Gitlab]# docker-compose ps
    64. Name Command State Ports
    65. ------------------------------------------------------------------------------------------------------------------------------------
    66. 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
    67. gitlab_postgresql_1 /sbin/entrypoint.sh Up 5432/tcp
    68. gitlab_redis_1 docker-entrypoint.sh --log ... Up 6379/tcp
    69. [root@rmaster03 Gitlab]#

    访问地址
    http://192.168.11.102:10080/
    image.png

    image.png