-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 2.3 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
services:
gitlab:
image: gitlab/gitlab-ce:${GITLAB_CE_VERSION}
restart: always
hostname: "${GITLAB_HOST}"
container_name: gitlab
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://${GITLAB_HOST}'
nginx['listen_port'] = 80
nginx['listen_https'] = ${IS_NGINX_LISTEN_HTTPS:-false}
gitlab_rails['gitlab_shell_ssh_port'] = ${GITLAB_SHELL_SSH_PORT:-8229}
gitlab_rails['force_ssl'] = ${GITLAB_FORCE_SSL:-false}
gitlab_rails['gitlab_https'] = ${GITLAB_HTTPS:-false}
puma['worker_processes'] = ${PUMA_WORKER_PROCESSES:-2}
prometheus_monitoring['enable'] = ${PROMETHEUS_MONITORING_ENABLED:-false}
alertmanager['enable'] = ${ALERTMANAGER_ENABLED:-false}
prometheus['enable'] = ${PROMETHEUS_ENABLED:-false}
postgresql['shared_buffers'] = '256MB'
gitlab_rails['smtp_enable'] = ${GITLAB_SMTP_ENABLED:-false}
gitlab_rails['smtp_address'] = "${GITLAB_SMTP_ADDRESS}"
gitlab_rails['smtp_port'] = ${GITLAB_SMTP_PORT}
gitlab_rails['smtp_user_name'] = "${GITLAB_SMTP_USER_NAME}"
gitlab_rails['smtp_password'] = "${GITLAB_SMTP_PASSWORD}"
gitlab_rails['smtp_domain'] = "${GITLAB_SMTP_DOMAIN}"
gitlab_rails['smtp_authentication'] = "${GITLAB_SMTP_AUTHENTICATION}"
gitlab_rails['smtp_enable_starttls_auto'] = ${GITLAB_SMTP_ENABLE_STARTTLS_AUTO:-true}
gitlab_rails['smtp_tls'] = ${GITLAB_SMTP_TLS:-false}
gitlab_rails['smtp_openssl_verify_mode'] = "${GITLAB_SMTP_OPENSSL_VERIFY_MODE:-none}"
gitlab_rails['gitlab_email_display_name'] = "${GITLAB_EMAIL_DISPLAY_NAME}"
gitlab_rails['gitlab_email_from'] = "${GITLAB_EMAIL_FROM}"
gitlab_rails['gitlab_email_reply_to'] = "${GITLAB_EMAIL_REPLY_TO}"
gitlab_rails['incoming_email_enabled'] = ${GITLAB_INCOMING_EMAIL_ENABLED:-false}
ports:
- "${GITLAB_PORT:-80}:80"
- "${GITLAB_HTTPS_PORT:-443}:443"
- "${GITLAB_SSH_PORT:-2222}:22"
volumes:
- ./etc/gitlab/config:/etc/gitlab
- ${GITLAB_LOGS_PATH}:/var/log/gitlab
- ${GITLAB_DATA_PATH}:/var/opt/gitlab
shm_size: "256m"
deploy:
resources:
limits:
cpus: '1.5'
memory: '2GB'
reservations:
cpus: '1'
memory: '1GB'