# 使用说明 V3.2.0
version: '3.0'
services:
gitlab:
hostname: gitlab
environment:
TZ: 'Asia/Shanghai'
GITLAB_OMNIBUS_CONFIG:
# external_url 'http://gitlab.demo.com'
gitlab_rails['time_zone'] = 'Asia/Shanghai'
restart: always
privileged: true
logging:
driver: "json-file"
options:
max-size: "500m"
image: registry.cn-hangzhou.aliyuncs.com/make_zfj/gitlab:10.7.5
container_name: gitlab
ports:
- '8504:80'
- '8505:22'
volumes:
- ./gitlab/etc:/etc/gitlab
- ./gitlab/log:/var/log/gitlab
- ./gitlab/opt:/var/opt/gitlab
# networks:
# fuksou-net:
# ipv4_address: 192.168.100.18