version: '3'
services:
gitlab:
image: gitlab/gitlab-ce:11.9.12-ce.0
restart: always
container_name: gitlab
hostname: gitlab.pointsmart.cn
privileged: true
user: root
ports:
- "80:80"
- "443:443"
- "222:22"
environment:
GITLAB_OMNIBUS_CONFIG: |
gitlab_rails['time_zone'] = 'Asia/Shanghai'
gitlab_rails['gitlab_shell_ssh_port'] = 222
gitlab_rails['gitlab_shell_git_timeout'] = 800
volumes:
- /etc/localtime:/etc/localtime:ro
- /data/gitlab/config:/etc/gitlab
- /data/gitlab/logs:/var/log/gitlab
- /data/gitlab/data:/var/opt/gitlab