Skip to content

Instantly share code, notes, and snippets.

@hmenn
Created August 19, 2019 06:23
Show Gist options
  • Save hmenn/16dc8f3c6c68bf21a56c67fed6db8e0b to your computer and use it in GitHub Desktop.
Save hmenn/16dc8f3c6c68bf21a56c67fed6db8e0b to your computer and use it in GitHub Desktop.
Basic Gitlab Docker Compose Configurations
gitlab:
container_name: gitlab
image: 'gitlab/gitlab-ee:latest'
restart: always
# Add your dns name here
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
# Add your dns name here
external_url 'http://gitlab.example.com'
gitlab_rails['gitlab_signup_enabled'] = false
gitlab_rails['time_zone'] = 'Europe/Istanbul'
gitlab_rails['lfs_enabled'] = true
gitlab_rails['initial_root_password'] = 'adminadmin'
gitlab_rails['gitlab_shell_ssh_port'] = 1234
ports:
- '80:80' # http
- '443:443' # https
- '1234:22' # ssh
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