Former-commit-id: a0c62d1d928a3abaf7cf81dbafa69915716283aa
Former-commit-id: 562f77abc71bdbc48d07de29fb3be9e78b89d92b
1.0
wanggang 4 years ago
parent 47b4fccab9
commit 583e786bfa

@ -1,2 +1,6 @@
TZ=Asia/Shanghai
IP=192.168.100.144
IP=192.168.100.144
PORT=9080
#windows:docker.sock=//var/run/docker.sock
#linux:docker.sock=/var/run/docker.sock
docker.sock=//var/run/docker.sock

@ -6,17 +6,18 @@ services:
image: gitlab/gitlab-ce:13.12.0-ce.0
restart: always
privileged: true
hostname: ${IP}
hostname: gitlab
environment:
TZ: ${TZ}
GITLAB_ROOT_PASSWORD: aA123456!
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://${IP}'
external_url 'http://${IP}:${PORT}'
nginx['listen_port'] = ${PORT}
gitlab_rails['time_zone'] = 'Asia/Shanghai'
ports:
- 9080:80
#- 9443:443
#- 9022:22
- ${PORT}:${PORT}
# - 9443:443
# - 9022:22
volumes:
- ./data/gitlab/etc:/etc/gitlab
- ./data/gitlab/log:/var/log/gitlab
@ -24,6 +25,8 @@ services:
#https://docs.gitlab.com/runner/register/index.html#docker
#http://localhost:9080/admin/runners
#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:
image: gitlab/gitlab-runner:alpine-v13.12.0
restart: always
@ -31,7 +34,8 @@ services:
environment:
TZ: ${TZ}
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
depends_on:
- gitlab
- gitlab
Loading…
Cancel
Save