title: Traefik and Harbor
body: <p>I have changed the docker-compose.yml after the default Conf-Generation. My Proxy configuration looks like:
  ( I had only touched the proxy part )</p>
  <pre><code>proxy:
      image: goharbor/nginx-photon:v1.9.4
      container_name: nginx
      restart: always
      cap_drop:
        - ALL
      cap_add:
        - CHOWN
        - SETGID
        - SETUID
        - NET_BIND_SERVICE
      volumes:
        - ./common/config/nginx:/etc/nginx:z
      networks:
        - harbor
        - web
      dns_search: .
      expose:
        - 8080
      ports:
        - 8081:8080 #only to test if its online
      labels:
        - &quot;traefik.enable=true&quot;
        - &quot;traefik.backend=harbor-backend&quot;
        - &quot;traefik.docker.network=web&quot;
        - &quot;traefik.frontend.rule=Host:harbor.example.com&quot;
        - &quot;traefik.frontend.entryPoints=https,http&quot;
        - &quot;traefik.port=8080&quot;
      depends_on:
        - registry
        - core
        - portal
        - log
      logging:
        driver: &quot;syslog&quot;
        options:  
          syslog-address: &quot;tcp://127.0.0.1:1514&quot;
          tag: &quot;proxy&quot;
  networks:
    harbor:
      external: false
    web:
      external: true
  </code></pre>
  <p>In my Harbor.yml i had leaved the http port to 80 and disabled https.
  My Proxy configuration is the default one.</p>
  <p>The Web UI works fine but when I try to login with the docker client i get this response:</p>
  <pre><code>root@h2791112:~# docker login registry.example.com
  Username: admin
  Password:
  Error response from daemon: Get https://registry.example.com/v2/: unauthorized: authentication required
  
  </code></pre>
  <p>And that are the crendentials that work with the ui</p>
  <p>did I miss a label ?</p>