Created
September 12, 2018 01:04
-
-
Save biased-badger/ce2bfc69bd8c9fe5083c99b2b1a07a17 to your computer and use it in GitHub Desktop.
Gitlab docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
gitlab: | |
image: gitlab/gitlab-ce:latest | |
container_name: gitlab-ce | |
restart: always | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'https://example.com' | |
gitlab_rails['time_zone'] = 'Europe/Moscow' | |
gitlab_rails['smtp_enable'] = true | |
gitlab_rails['smtp_address'] = "smtp.yandex.ru" | |
gitlab_rails['smtp_port'] = 465 | |
gitlab_rails['smtp_user_name'] = "[email protected]" | |
gitlab_rails['smtp_password'] = "pass" | |
gitlab_rails['smtp_domain'] = "yandex.ru" | |
gitlab_rails['gitlab_email_from'] = "[email protected]" | |
gitlab_rails['smtp_authentication'] = "login" | |
gitlab_rails['smtp_tls'] = true | |
gitlab_rails['smtp_enable_starttls_auto'] = true | |
gitlab_rails['smtp_openssl_verify_mode'] = 'peer' | |
unicorn['worker_timeout'] = 60 | |
unicorn['worker_processes'] = 3 | |
letsencrypt['contact_emails'] = ['[email protected]'] | |
logging['logrotate_frequency'] = "weekly" | |
logging['logrotate_rotate'] = 52 | |
logging['logrotate_compress'] = "compress" | |
logging['logrotate_method'] = "copytruncate" | |
logging['logrotate_delaycompress'] = "delaycompress" | |
# nginx['listen_port'] = 443 | |
nginx['redirect_http_to_https'] = true | |
nginx['redirect_http_to_https_port'] = 80 | |
nginx['ssl_certificate'] = "/etc/ssl/certs/gitlab/gitlab.crt" | |
nginx['ssl_certificate_key'] = "/etc/ssl/certs/gitlab/gitlab.key" | |
nginx['ssl_protocols'] = "TLSv1 TLSv1.1 TLSv1.2" | |
nginx['logrotate_frequency'] = "weekly" | |
nginx['logrotate_rotate'] = 52 | |
nginx['logrotate_compress'] = "compress" | |
nginx['logrotate_method'] = "copytruncate" | |
nginx['logrotate_delaycompress'] = "delaycompress" | |
# Add any other gitlab.rb configuration options if desired | |
ports: | |
- "0.0.0.0:80:80" | |
- "0.0.0.0:443:443" | |
- "0.0.0.0:22:22" | |
volumes: | |
- /srv/gitlab/config:/etc/gitlab | |
- /srv/gitlab/ssl:/etc/ssl/certs/gitlab | |
- /srv/gitlab/logs:/var/log/gitlab | |
- /srv/gitlab/data:/var/opt/gitlab | |
networks: | |
dev-net: | |
aliases: | |
- example.com | |
networks: | |
dev-net: | |
external: | |
name: gitlab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment