|
| 1 | +version: '3' |
| 2 | +services: |
| 3 | + gitlab: |
| 4 | + image: gitlab/gitlab-ee:10.0.4-ee.0 |
| 5 | + networks: |
| 6 | + spacely-eng: |
| 7 | + aliases: |
| 8 | + - gitlab-docker-only.example.com |
| 9 | + ports: |
| 10 | + - 51443:443 |
| 11 | + - 51022:22 |
| 12 | + environment: |
| 13 | + GITLAB_OMNIBUS_CONFIG: | |
| 14 | + external_url 'https://gitlab-spacely-engineering.example.com:51443' |
| 15 | + gitlab_rails['time_zone'] = 'America/Chicago' |
| 16 | + gitlab_rails['gitlab_email_from'] = '[email protected]' |
| 17 | + gitlab_rails['gitlab_email_display_name'] = 'GitLab Administrator' |
| 18 | + gitlab_rails['gitlab_email_reply_to'] = '[email protected]' |
| 19 | + gitlab_rails['backup_keep_time'] = 14515200 |
| 20 | + gitlab_rails['smtp_enable'] = true |
| 21 | + gitlab_rails['smtp_address'] = "smtp.example.com" |
| 22 | + gitlab_rails['smtp_port'] = 587 |
| 23 | + gitlab_rails['smtp_user_name'] = "[email protected]" |
| 24 | + gitlab_rails['smtp_password'] = "changeMeToSomethingGood" |
| 25 | + gitlab_rails['smtp_domain'] = "example.com" |
| 26 | + gitlab_rails['smtp_authentication'] = "login" |
| 27 | + gitlab_rails['smtp_enable_starttls_auto'] = true |
| 28 | + unicorn['worker_timeout'] = 60 |
| 29 | + unicorn['worker_processes'] = 3 |
| 30 | + logging['logrotate_frequency'] = "weekly" |
| 31 | + logging['logrotate_rotate'] = 52 |
| 32 | + logging['logrotate_compress'] = "compress" |
| 33 | + logging['logrotate_method'] = "copytruncate" |
| 34 | + logging['logrotate_delaycompress'] = "delaycompress" |
| 35 | + nginx['listen_port'] = 443 |
| 36 | + nginx['redirect_http_to_https'] = true |
| 37 | + nginx['keepalive_timeout'] = 75 |
| 38 | + nginx['ssl_certificate'] = "/etc/ssl/certs/gitlab/server-cert.pem" |
| 39 | + nginx['ssl_certificate_key'] = "/etc/ssl/certs/gitlab/server-key.pem" |
| 40 | + nginx['ssl_protocols'] = "TLSv1.1 TLSv1.2" |
| 41 | + nginx['logrotate_frequency'] = "weekly" |
| 42 | + nginx['logrotate_rotate'] = 52 |
| 43 | + nginx['logrotate_compress'] = "compress" |
| 44 | + nginx['logrotate_method'] = "copytruncate" |
| 45 | + nginx['logrotate_delaycompress'] = "delaycompress" |
| 46 | + manage_storage_directories['enable'] = false |
| 47 | + # Add any other gitlab.rb configuration options if desired |
| 48 | + volumes: |
| 49 | + - /nfs/docker-data/container-data/cicd/gitlab/data:/var/opt/gitlab |
| 50 | + - /nfs/docker-data/container-data/cicd/gitlab/config:/etc/gitlab |
| 51 | + - /nfs/docker-data/container-data/cicd/gitlab/certs:/etc/ssl/certs/gitlab:ro |
| 52 | + - /nfs/docker-data/container-data/cicd/gitlab/logs:/var/log/gitlab |
| 53 | + deploy: |
| 54 | + labels: |
| 55 | + - gitlab_service |
| 56 | + mode: replicated |
| 57 | + replicas: 1 |
| 58 | + placement: |
| 59 | + constraints: [node.labels.cicdBuildsOnly != true] |
| 60 | + update_config: |
| 61 | + parallelism: 1 |
| 62 | + restart_policy: |
| 63 | + condition: any |
| 64 | +networks: |
| 65 | + spacely-eng: |
| 66 | + external: |
| 67 | + name: spacely-engineering |
0 commit comments