1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| version: "3.5"
services:
gitlab:
image: gitlab/gitlab-ce:latest
container_name: gitlab
restart: always
hostname: 'xa-gitlab'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://xa-gitlab'
gitlab_rails['backup_keep_time'] = 604800
gitlab_rails['time_zone'] = 'Asia/Shanghai'
gitlab_rails['gitlab_shell_ssh_port'] = 1022
#gitlab_rails['ldap_enabled'] = true
#gitlab_rails['ldap_servers'] = YAML.load <<-EOS
#main:
# label: 'LDAP'
# host: '192.168.1.1'
# port: 389
# uid: 'uid'
# bind_dn: 'CN=admin,DC=lotbrick,DC=com'
# password: 'admin'
# user_filter: 'objectclass=person'
# base: 'ou=People,dc=xxxxx,dc=com'
# active_directory: false
# method: 'plain'
# attributes:
# username: ["cn"]
# email: ['email']
# name: 'displayName'
# first_name: 'givenName'
# last_name: 'sn'
#EOS
ports:
- '80:80'
- '443:443'
- '1022:22'
volumes:
- ./gitlab/config:/etc/gitlab
- ./gitlab/logs:/var/log/gitlab
- ./gitlab/data:/var/opt/gitlab
# - "/etc/localtime:/etc/localtime:ro"
|