-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitlab.yml
93 lines (90 loc) · 4.04 KB
/
gitlab.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3.7'
services:
gitlab:
image: gitlab/gitlab-ce:11.9.8-ce.0
restart: always
container_name: gitlab
ports:
- '80:80'
- '443:443'
- '10022:22'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://lab.example.com'
gitlab_rails['gitlab_shell_ssh_port'] = 10022
gitlab_rails['time_zone'] = 'Beijing'
gitlab_rails['artifacts_object_store_enabled'] = true
gitlab_rails['artifacts_object_store_direct_upload'] = true
gitlab_rails['artifacts_object_store_remote_directory'] = "gitlab.example.com/artifacts"
gitlab_rails['artifacts_object_store_connection'] = {
'provider' => 'AWS',
'region' => 'cn-northwest-1',
'use_iam_profile' => true,
'host' => 's3.cn-northwest-1.amazonaws.com.cn'
}
gitlab_rails['lfs_object_store_enabled'] = true
gitlab_rails['lfs_object_store_direct_upload'] = true
gitlab_rails['lfs_object_store_remote_directory'] = "gitlab.example.com/lfs"
gitlab_rails['lfs_object_store_connection'] = {
'provider' => 'AWS',
'region' => 'cn-northwest-1',
'use_iam_profile' => true,
'host' => 's3.cn-northwest-1.amazonaws.com.cn'
}
gitlab_rails['uploads_object_store_enabled'] = true
gitlab_rails['uploads_object_store_direct_upload'] = true
gitlab_rails['uploads_object_store_remote_directory'] = "gitlab.example.com/uploads"
gitlab_rails['uploads_object_store_connection'] = {
'provider' => 'AWS',
'region' => 'cn-northwest-1',
'use_iam_profile' => true,
'host' => 's3.cn-northwest-1.amazonaws.com.cn'
}
gitlab_rails['backup_keep_time'] = 259200
gitlab_rails['backup_upload_remote_directory'] = 'gitlab.example.com/backup'
gitlab_rails['backup_upload_connection'] = {
'provider' => 'AWS',
'region' => 'cn-northwest-1',
'use_iam_profile' => true,
'host' => 's3.cn-northwest-1.amazonaws.com.cn'
}
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "[email protected]"
gitlab_rails['smtp_password'] = "$GITLAB_EMAIL_PASSWORD"
gitlab_rails['smtp_domain'] = "example.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_ssl'] = true
gitlab_rails['gitlab_email_from'] = '[email protected]'
gitlab_rails['gitlab_email_reply_to'] = '[email protected]'
gitlab_rails['incoming_email_enabled'] = true
gitlab_rails['incoming_email_address'] = "[email protected]"
gitlab_rails['incoming_email_email'] = "[email protected]"
gitlab_rails['incoming_email_password'] = "$GITLAB_EMAIL_PASSWORD"
gitlab_rails['incoming_email_host'] = "imap.exmail.qq.com"
gitlab_rails['incoming_email_port'] = 993
gitlab_rails['incoming_email_ssl'] = true
nginx['ssl_certificate'] = "/etc/gitlab/ssl/wildcard.example.com.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/wildcard.example.com.key"
nginx['hsts_max_age'] = 31536000
nginx['hsts_include_subdomains'] = true
nginx['custom_nginx_config'] = "include /var/opt/gitlab/nginx/vhost/*.conf;"
pages_external_url "https://example.com/"
gitlab_pages['inplace_chroot'] = true
pages_nginx['redirect_http_to_https'] = true
pages_nginx['ssl_certificate'] = "/etc/gitlab/ssl/wildcard.example.com.crt"
pages_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/wildcard.example.com.key"
volumes:
- /srv/docker/gitlab/config:/etc/gitlab
- /srv/docker/gitlab/data:/var/opt/gitlab
- /srv/docker/gitlab/logs:/var/log/
- ./ssl:/etc/gitlab/ssl
- ./nginx/vhost:/var/opt/gitlab/nginx/vhost
- ./nginx/html:/var/opt/gitlab/nginx/html
- /etc/letsencrypt:/var/opt/gitlab/nginx/letsencrypt
networks:
- gitlab
networks:
gitlab:
name: gitlab