SHARE
TWEET

Untitled

a guest Sep 10th, 2019 170 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "3.7"
  2. services:
  3.  
  4.   server:
  5.     image: gitlab/gitlab-ce:latest
  6.     deploy:
  7.       placement:
  8.         constraints:
  9.         - node.labels.powerful == true
  10.     domainname: [DOMAIN]
  11.     ports:
  12.       - "4901:22"
  13.       - "8884:80"
  14.     volumes:
  15.       - data:/var/opt/gitlab
  16.       - logs:/var/log/gitlab
  17.       - config:/etc/gitlab
  18.     environment:
  19.       GITLAB_OMNIBUS_CONFIG: |
  20.         external_url 'https://[DOMAIN]'
  21.         gitlab_rails['lfs_enabled'] = true
  22.         gitlab_rails['time_zone'] = 'UTC'
  23.         gitlab_rails['initial_root_password'] = File.read('/run/secrets/gitlab_root_password')
  24.         nginx['listen_port'] = 80
  25.         nginx['listen_https'] = false
  26.         gitlab_rails['gitlab_ssh_host'] = '[DOMAIN]:4901'
  27.         gitlab_rails['ldap_enabled'] = true
  28.         gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
  29.         main: # 'main' is the GitLab 'provider ID' of this LDAP server
  30.           label: 'blah'
  31.           host: '[DOMAIN]'
  32.           port: 389
  33.           uid: 'sAMAccountName'
  34.           bind_dn: 'works-gud'
  35.           password: File.read('/run/secrets/git_ad_user_password')
  36.           encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
  37.           verify_certificates: false
  38.           smartcard_auth: false
  39.           active_directory: true
  40.           allow_username_or_email_login: false
  41.           lowercase_usernames: true
  42.           block_auto_created_users: false
  43.           base: 'works-gud'
  44.           user_filter: 'works-gud'
  45.           attributes:
  46.             username: 'sAMAccountname'
  47.             email: 'mail'
  48.             name: 'name'
  49.             first_name: 'givenname'
  50.             last_name: 'sn'
  51.         EOS
  52.     secrets:
  53.       - gitlab_root_password
  54.       - git_ad_user_password
  55.  
  56.   runner:
  57.     image: gitlab/gitlab-runner:alpine
  58.     deploy:
  59.       mode: replicated
  60.       replicas: 1
  61.       command: /sbin/ash -c '
  62.         gitlab-runner register -n
  63.         --url https://[DOMAIN]
  64.         --registration-token farts
  65.         --executor docker
  66.         --description "Docker Runner"
  67.         --docker-image "docker:latest"
  68.         --docker-volumes /var/run/docker.sock:/var/run/docker.sock'
  69.     environment:
  70.       REGISTRATION_TOKEN: "farts"
  71.       URL: server
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top