|
|
@ -6,15 +6,16 @@ services:
|
|
|
|
image: gitlab/gitlab-ce:13.12.0-ce.0
|
|
|
|
image: gitlab/gitlab-ce:13.12.0-ce.0
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
privileged: true
|
|
|
|
privileged: true
|
|
|
|
hostname: ${IP}
|
|
|
|
hostname: gitlab
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
TZ: ${TZ}
|
|
|
|
TZ: ${TZ}
|
|
|
|
GITLAB_ROOT_PASSWORD: aA123456!
|
|
|
|
GITLAB_ROOT_PASSWORD: aA123456!
|
|
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
|
|
external_url 'http://${IP}'
|
|
|
|
external_url 'http://${IP}:${PORT}'
|
|
|
|
|
|
|
|
nginx['listen_port'] = ${PORT}
|
|
|
|
gitlab_rails['time_zone'] = 'Asia/Shanghai'
|
|
|
|
gitlab_rails['time_zone'] = 'Asia/Shanghai'
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- 9080:80
|
|
|
|
- ${PORT}:${PORT}
|
|
|
|
# - 9443:443
|
|
|
|
# - 9443:443
|
|
|
|
# - 9022:22
|
|
|
|
# - 9022:22
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
@ -24,6 +25,8 @@ services:
|
|
|
|
#https://docs.gitlab.com/runner/register/index.html#docker
|
|
|
|
#https://docs.gitlab.com/runner/register/index.html#docker
|
|
|
|
#http://localhost:9080/admin/runners
|
|
|
|
#http://localhost:9080/admin/runners
|
|
|
|
#gitlab-runner register
|
|
|
|
#gitlab-runner register
|
|
|
|
|
|
|
|
#docker:20.10.6
|
|
|
|
|
|
|
|
#https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-the-docker-executor-with-the-docker-image-docker-in-docker
|
|
|
|
gitlab-runner:
|
|
|
|
gitlab-runner:
|
|
|
|
image: gitlab/gitlab-runner:alpine-v13.12.0
|
|
|
|
image: gitlab/gitlab-runner:alpine-v13.12.0
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
@ -31,7 +34,8 @@ services:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
TZ: ${TZ}
|
|
|
|
TZ: ${TZ}
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
#- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
|
|
|
- ${docker.sock}:/var/run/docker.sock
|
|
|
|
- ./data/gitlab-runner:/etc/gitlab-runner
|
|
|
|
- ./data/gitlab-runner:/etc/gitlab-runner
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- gitlab
|
|
|
|
- gitlab
|