version: '3'
services:
gitlab:
image: 'yrzr/gitlab-ce-arm64v8:latest'
restart: unless-stopped
hostname: 'test.gitlab.com'
environment:
TZ: 'Asia/Shanghai'
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://test.gitlab.com:9999'
gitlab_rails['time_zone'] = 'Asia/Shanghai'
ports:
- '9999:9999'
#- '443:443'
#- '22:22'
volumes:
- /home/gitlab/config:/etc/gitlab
- /home/gitlab/data:/var/opt/gitlab
- /home/gitlab/logs:/var/log/gitlab
runner:
image: 'gitlab/gitlab-runner:latest'
container_name: 'gitlab-runner'
restart: always
links:
- gitlab:dev.gitlab.com
volumes:
- '/srv/gitlab-runner/config:/etc/gitlab-runner'
- '/var/run/docker.sock:/var/run/docker.sock'
- '/usr/bin/docker:/bin/docker'
docker-compose -f gitlab.yml up
标签:compose,runner,gitlab,9999,var,home,docker From: https://www.cnblogs.com/SunshineKimi/p/17923361.html