In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to use docker-compose to install gitlab", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's ideas slowly in depth, together to study and learn "how to use docker-compose to install gitlab" bar!
GitLab is a professional Git solution, powerful and similar to GitHub, and its Community Edition (CE) is free, so it can provide professional code hosting services for small and medium-sized teams. In particular, it can also run on raspberry pie as docker.
Hardware: Raspberry Pi 4B (8g version)
System: Ubuntu 20.04 LTS
Docker:18.09.9
Docker-compose: 1.25.0
Gitlab image: yrzr/gitlab-ce-arm64v8:latest
Note: because our raspberry pie 4B itself is not x86, but arm architecture, and our system is equipped with 64-bit ubuntu, so the image can only choose the image of arm64v8 architecture. Here we choose the gitlab image yrzr/gitlab-ce-arm64v8:latest. In addition, according to the minimum installation requirements of gitlab, we choose the 8g version of 4B to install to ensure the stability of the system.
Deployment preparation
Raspberry pie 4B sets IP to 10.0.1.42
Application directory: / home/docker-compose/gitlab
/ home/docker-compose/gitlab/docker-compose.yaml
Version: '3'services: gitlab: image: yrzr/gitlab-ce-arm64v8:latest container_name: gitlab restart: always privileged: true environment: TZ:' Asia/Shanghai' GITLAB_OMNIBUS_CONFIG: | external_url = "http://gitlab.fastjrun.com" gitlab_rails ['time_zone'] =' Asia/Shanghai' gitlab_rails ['gitlab_ssh_host'] =' gitlab. Fastjrun.com' gitlab_rails ['gitlab_shell_ssh_port'] = 2222 ports: -' 80 ports 80'- '443 ports 443' -'22 22 volumes: -'/ home/docker-compose/gitlab/config:/etc/gitlab' -'/ home/docker-compose/gitlab/logs:/var/log/gitlab' -'/ home/docker-compose/ Gitlab/data:/var/opt/gitlab' logging: driver: "json-file" options: max-size: "20m" max-file: "10" launch # cd / home/docker-compose/gitlab# docker-compose up-ddocker-compose up-dCreating network "gitlab_default" with the default driverCreating gitlab. Done
After waiting for about 5 to 10 minutes, access http://gitlab.fastjrun.com with a browser (you need to deal with the mapping between ip and domain name. For windows clients, you need to maintain a record such as "10.0.1.42 gitlab.fastjrun.com" in C:\ Windows\ System32\ drivers\ etc\ hosts). The following interface is displayed:
Obviously, we only need to initialize gitlab later to use it. As to whether it can be used normally, how many users can use it at the same time, and how many warehouses it can support, it is up to the reader to weigh it.
I am more accustomed to using gogs than gitlab.
Thank you for your reading, the above is the content of "how to use docker-compose to install gitlab", after the study of this article, I believe you have a deeper understanding of how to use docker-compose to install gitlab, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.