-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
126 lines (123 loc) · 4.33 KB
/
docker-compose.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
version: "3"
# persistent volumes
# to clean them up: `docker volume ls -q | grep cmwlpipelinecore | xargs docker volume rm`
volumes:
gitlab_logs:
driver: local
gitlab_data:
driver: local
gitlab_config:
driver: local
gitlab_backup:
driver: local
gitlab_db:
driver: local
networks:
cmwl-dev:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.0.1.0/24
services:
redis:
image: "redis:5.0.7"
container_name: "redis"
hostname: "redis"
networks:
- cmwl-dev
gitlab_db:
image: "postgres:12.1-alpine"
container_name: "gitlab_db"
hostname: ${GITLAB_DB_HOST:-gitlab_db}
# Setup the username, password, and database name
environment:
- POSTGRES_DB=${GITLAB_DB_NAME:-gitlab}
- POSTGRES_USER=${GITLAB_DB_USER:-gitlab}
- POSTGRES_PASSWORD=${GITLAB_DB_PASS:-gitlab}
networks:
- cmwl-dev
ports:
- "7432:5432"
volumes:
- gitlab_db:/var/lib/postgresql/data
gitlab:
image: 'gitlab/gitlab-ce:12.7.5-ce.0'
restart: always
hostname: "gitlab.cmwl.ru.com"
container_name: "gitlab"
environment:
GITLAB_OMNIBUS_CONFIG: |
## Nginx
external_url = 'https://gitlab.cmwl.ru.com:443/'
nginx['enable'] = true
nginx['listen_port'] = 443
gitlab_rails['gitlab_port'] = 443
mattermost_nginx['listen_port'] = 443
mattermost['port'] = 443
pages_nginx['listen_port'] = 443
gitlab_rails['pages_port'] = 443
nginx['listen_https'] = true
nginx['redirect_http_to_https'] = true
nginx['redirect_http_to_https_port'] = 80
nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.cmwl.ru.com.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.cmwl.ru.com.key"
registry_nginx['redirect_http_to_https'] = true
# https://blue.cse.buffalo.edu/gitlab/help/install/requirements.md
unicorn['worker_timeout'] = 60
unicorn['worker_processes'] = 3
# additional gitlab.rb configuration goes here, each on its own line
### Enable/Disable some services
gitaly['enable'] = true
redis['enable'] = false
grafana['enable'] = false
mattermost['enable'] = false
postgresql['enable'] = false
prometheus['enable'] = false
alertmanager['enable'] = false
letsencrypt['enabled'] = false
node_exporter['enable'] = false
redis_exporter['enable'] = false
gitlab_exporter['enable'] = false
postgres_exporter['enable'] = false
prometheus_monitoring['enable'] = false
# https://docs.gitlab.com/omnibus/settings/database.html#using-a-non-packaged-postgresql-database-management-server
gitlab_rails['db_port'] = '${GITLAB_DB_PORT:-5432}'
gitlab_rails['db_host'] = '${GITLAB_DB_HOST:-gitlab_db}'
gitlab_rails['db_password'] = '${GITLAB_DB_USER:-gitlab}'
gitlab_rails['db_username'] = '${GITLAB_DB_PASS:-gitlab}'
gitlab_rails['db_database'] = '${GITLAB_DB_NAME:-gitlab}'
gitlab_rails['auto_migrate'] = true
gitlab_rails['ldap_enabled'] = false
gitlab_rails['usage_ping_enabled'] = false
gitlab_rails['db_adapter'] = 'postgresql'
gitlab_rails['db_encoding'] = 'unicode'
gitlab_rails['db_collation'] = nil
gitlab_rails['db_pool'] = 10
gitlab_rails['db_socket'] = nil
gitlab_rails['db_sslmode'] = nil
gitlab_rails['db_sslrootcert'] = nil
gitlab_rails['db_sslcompression'] = 0
gitlab_rails['db_statements_limit'] = 1000
gitlab_rails['db_prepared_statements'] = false
gitlab_rails['redis_host'] = 'redis'
gitlab_rails['redis_port'] = '6379'
gitlab_rails['backup_keep_time'] = 172800
storage_check['enable'] = false
praefect['enable'] = false
networks:
- cmwl-dev
depends_on:
- gitlab_db
- redis
ports:
- '80:80'
- '443:443'
- '2222:22'
volumes:
- 'gitlab_config:/etc/gitlab'
- 'gitlab_logs:/var/log/gitlab'
- 'gitlab_data:/var/opt/gitlab'
- 'gitlab_backup:/var/opt/gitlab/backups'
- '/etc/letsencrypt/live/gitlab.cmwl.ru.com/privkey.pem:/etc/gitlab/ssl/gitlab.cmwl.ru.com.key:ro'
- '/etc/letsencrypt/live/gitlab.cmwl.ru.com/fullchain.pem:/etc/gitlab/ssl/gitlab.cmwl.ru.com.crt:ro'