title: Docker-Compose.yml with GITLAB_OMNIBUS_CONFIG not working
body: <p>Sorry if this is a duplicate question––I found similar issues but none seemed to be my exact use case... If I missed something mentioning a link would be highly appreciated.</p>
  <p>I am trying to compose a docker stack with frontproxy, acme-companion and gitlab.</p>
  <p>Currently, I am using a setup with several docker-compose.yml files for frontproxy and gitlab, in separate directories––which is working, without acme-companion.</p>
  <p>My attempt to integrate it all into one file fails so far; obviously I am messing up the <code>GITLAB_OMNIBUS_CONFIG</code> configs––I just don't understand where my error is.</p>
  <pre class="lang-yaml prettyprint-override"><code>version: '3.1'
  
  services:
    frontproxy:
      restart: always
      image: jwilder/nginx-proxy
      labels:
        - &quot;com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx&quot;
      ports:
        - &quot;80:80&quot;
        - &quot;443:443&quot;
      volumes:
        - &quot;/var/run/docker.sock:/tmp/docker.sock:ro&quot;
        - &quot;certs-volume:/etc/nginx/certs:ro&quot;
        - &quot;/etc/nginx/vhost.d&quot;
        - &quot;/usr/share/nginx/html&quot;
    nginx-letsencrypt-companion:
      restart: always
      image: nginxproxy/acme-companion
      volumes:
        - &quot;certs-volume:/etc/nginx/certs&quot;
        - &quot;/var/run/docker.sock:/var/run/docker.sock:ro&quot;
    gitlab:
      image: gitlab/gitlab-ce:latest
      restart: always
      hostname: 'dev.redacted.com'
      environment:
        VIRTUAL_HOST: 'dev.redacted.com'
        LETSENCRYPT_HOST: 'dev.redacted.com'
        LETSENCRYPT_EMAIL: 'splash@redacted.com'
        VIRTUAL_PROTO: 'https'
        VIRTUAL_PORT: '443'
        CERT_NAME: 'redacted.com'
        GITLAB_OMNIBUS_CONFIG: |
        # Email setup
          gitlab_rails['gitlab_email_enabled'] = true
          gitlab_rails['gitlab_email_from'] = 'admin@redacted.com'
          gitlab_rails['gitlab_email_display_name'] = 'Gitlab@redacted.com'
          gitlab_rails['gitlab_email_reply_to'] = 'admin@redacted.com'
          gitlab_rails['smtp_enable'] = true
          gitlab_rails['smtp_address'] = 'mail.redacted.com'
          gitlab_rails['smtp_port'] = 587
          gitlab_rails['smtp_user_name'] = 'admin@redacted.com'
          gitlab_rails['smtp_password'] = 'redacted'
          gitlab_rails['smtp_domain'] = 'redacted.com'
          gitlab_rails['smtp_authentication'] = 'login'
          gitlab_rails['smtp_enable_starttls_auto'] = true
          gitlab_rails['gitlab_root_email'] = 'admin@redacted.com'
          # HTTPS Setup
          letsencrypt['enable'] = false
          external_url 'https://dev.redacted.com'
          gitlab_rails['gitlab_https'] = true
          gitlab_rails['gitlab_port'] = 443
      ports:
        - '22:22'
      volumes:
        - ./config:/etc/gitlab
        - ./logs:/var/log/gitlab
        - ./data:/var/opt/gitlab
  volumes:
    certs-volume:
  </code></pre>
  <h3>Edit:</h3>
  <p>I had not specified the error I was seeing–thanks for pointing it out, @sytech!
  So, here's the exact error message, when trying to start the stack with <code>docker-compose up -d</code>:</p>
  <pre class="lang-sh prettyprint-override"><code>ERROR: yaml.parser.ParserError: while parsing a block mapping
    in &quot;./docker-compose.yml&quot;, line 29, column 7
  expected &lt;block end&gt;, but found '&lt;scalar&gt;'
    in &quot;./docker-compose.yml&quot;, line 38, column 9
  </code></pre>