gitea

如何在Ubuntu上使用docker compose搭建gitlab服务器

1.docker安装 https://www.jianshu.com/p/ea9b201e8b59 2.使用docker-compose.yml搭建gitlab: -安装:https://docs.gitlab.com/ee/install/docker.html 3.安装gitlab: https://docs.gitlab.com/ee/install/docker/installation.html ⚠️如果使用自定义端口请高仿: #yml文件格式检测网址https://www.bejson.com/validators/yaml_editor/ #gitlab-ce-compose.yml version: '3.6' services: web: container_name: gitlab image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'gitlab.study.com' environment: GITLAB_OMNIBUS_CONFIG: | #记住这里一定要带上端口否则gitlab项目clone地址也会没有端口导致gitlab-runner拉取不到项目,这里特意提示下 external_url 'http://192.168.1.6:1080' # Add any…