centos7 安装gitlab、gitlab-runner
运行docker-compose.yml文件之前,先安装docker和docker-compose
https://packages.gitlab.com/app/gitlab/gitlab-ce/search
version: '3.7' services: gitlab_runner: image: gitlab/gitlab-runner restart: always links: - gitlab_ce volumes: - /gitlab/gitlab-runner/run/docker.sock:/var/run/docker.sock - /gitlab/gitlab-runner/config:/etc/gitlab-runner depends_on: - gitlab_ce gitlab_ce: image: gitlab/gitlab-ce:13.11.0-ce.0 restart: always privileged: true environment: TZ: 'Asia/Shanghai' GITLAB_OMNIBUS_CONFIG: | external_url 'http://192.168.137.168:8001' gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.163.com" gitlab_rails['smtp_port'] = 465 gitlab_rails['smtp_user_name'] = "wylp_19@163.com" gitlab_rails['smtp_password'] = "zhang@0415" gitlab_rails['smtp_domain'] = "163.com" gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['smtp_tls'] = true gitlab_rails['gitlab_email_from'] = 'wylp_19@163.com' gitlab_rails['gitlab_shell_ssh_port'] = 222 nginx['redirect_http_to_https_port'] = 8001 nginx['listen_port'] = 8001 ports: - '8001:8001' - '8443:443' - '222:22' volumes: - /gitlab/config:/etc/gitlab - /gitlab/data:/var/opt/gitlab - /gitlab/logs:/var/log/gitlab