Skip to content

Instantly share code, notes, and snippets.

@yanickxia
Created January 9, 2018 15:14
Show Gist options
  • Save yanickxia/6a453887f5a4c5da6e3c01180c77eabe to your computer and use it in GitHub Desktop.
Save yanickxia/6a453887f5a4c5da6e3c01180c77eabe to your computer and use it in GitHub Desktop.
gitlab-dockercompse
web:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://git.mschina.io'
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = 'smtp.mailgun.org'
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = ''
gitlab_rails['smtp_password'] = ''
gitlab_rails['smtp_authentication'] = 'plain'
gitlab_rails['smtp_domain'] = 'mg.gitlab.com'
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['gitlab_email_from'] = '[email protected]'
ports:
- '80:80'
- '443:443'
- '22:22'
volumes:
- '/srv/gitlab/config:/etc/gitlab'
- '/srv/gitlab/logs:/var/log/gitlab'
- '/srv/gitlab/data:/var/opt/gitlab'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment